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.
When the Fix Imports feature deletes and import statement that is no longer used, it also deletes the line containing that import statment, UNLESS, the deleted import statment was at the bottom of the list of imports.
Dane, please look at it.
Some more information is available at http://weblogs.java.net/blog/bleonard/archive/2005/04/ netbeans_nyc_an_1.html
I just tried it and I was not able to reproduce it. Can you add more detailed steps how to reproduce it. Thanks.
1) Create a new General Java Application project. 2) Add import java.io.*; 3) Run Fix Imports The import will disappear, but its line will still be there. Hope this helps. /Brian
I experience this too. Dev build 050711, using bleonard's steps.
Issue is complete now.
Fixed in main trunk. Checking in ResourceImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/ResourceImpl.java,v <-- ResourceImpl.java new revision: 1.96; previous revision: 1.95