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.
Using the Fix Imports action (Alt+Shift+F), all inner class import statements are incorrectly removed (see Issue 51121 for more details).
Fixed in [maintrunk]. Since inner classes cannot be imported by package imports, a check for inner class imports is added to the code that removes import statements of classes already imported by some package imports. Checking in JavaFixAllImports.java; /cvs/editor/src/org/netbeans/modules/editor/java/JavaFixAllImports.java,v <-- JavaFixAllImports.java new revision: 1.23; previous revision: 1.22 done Mila, could you please review the fix. Visual diff: http://editor.netbeans.org/source/browse/editor/src/org/netbeans/modules/editor/java/JavaFixAllImports.java.diff?r1=1.22&r2=1.23
I approve the fix.
The fix works fine in main trunk build #200411042020; jdk1.5.0_01-b05; WinXP.
Setting TM=>4.1. Change it to 4.0 once it's integrated in release40 branch.
Integrated into [release40]. Checking in JavaFixAllImports.java; /cvs/editor/src/org/netbeans/modules/editor/java/JavaFixAllImports.java,v <-- JavaFixAllImports.java new revision: 1.22.4.1; previous revision: 1.22 done
The fix works fine in release40 build #200411072021; jdk1.5.0_01-b05.