This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 69389 - Slow startup and exception on Alt-SHift-F (imports)
Summary: Slow startup and exception on Alt-SHift-F (imports)
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-27 10:35 UTC by pbw
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log file (80.62 KB, text/plain)
2005-11-27 10:36 UTC, pbw
Details
Source file for which Alt-Shift-F throws exception (5.47 KB, text/plain)
2005-11-27 10:42 UTC, pbw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pbw 2005-11-27 10:35:20 UTC
Exception occurring when attempting Alt-Shift-F to clean up imports.  Seems also
to be associated with extremely slow startup when a particular file in in the
open editor window.
Comment 1 pbw 2005-11-27 10:36:27 UTC
Created attachment 27315 [details]
Log file
Comment 2 pbw 2005-11-27 10:40:40 UTC
Confirming that the slow startup is associated with a particular file in the
open editor window.  The symptoms of the slow startup are the lack of an content
in the Projects or File windows, no output in the memory monitor, and no
"Scanning project classpaths" status bar.  These elements are eventually
populated, and the IDE proceeds normally from there.

I suspect that a change in the referent of a SoftReference and the associated
changes to the ReferenceQueue may be responsible.
Comment 3 pbw 2005-11-27 10:42:36 UTC
Created attachment 27316 [details]
Source file for which Alt-Shift-F throws exception
Comment 4 Jan Chalupa 2005-11-28 09:37:13 UTC
The CCE comes from javacore.
Comment 5 Tomas Hurka 2005-11-28 10:54:36 UTC
The problem is caused by the following line:
Reference<? extends int[]> ref;

<? extends int[]> is correct but does not have much sense. You should use 
 Reference<int[]> ref;
Comment 6 Tomas Hurka 2005-11-28 13:16:16 UTC
Fixed in trunk.
Checking in WildCardImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/WildCardImpl.java,v  <--  
WildCardImpl.java
new revision: 1.8; previous revision: 1.7
done
Comment 7 pbw 2005-11-28 20:53:00 UTC
Without the <? extends int[]>, I got the following message:
incompatible types
found : java.lang.ref.Reference<capture of ? extends int[]>
required :java.lang.ref.Reference<int[]>
Comment 8 Quality Engineering 2007-09-20 09:39:48 UTC
Reorganization of java component