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.
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.
Created attachment 27315 [details] Log file
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.
Created attachment 27316 [details] Source file for which Alt-Shift-F throws exception
The CCE comes from javacore.
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;
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
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[]>
Reorganization of java component