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.
Product Version = NetBeans IDE Dev (Build 201012040001) Operating System = Windows Vista version 6.0 running on x86 Java; VM; Vendor = 1.6.0_22 Runtime = Java HotSpot(TM) Client VM 17.1-b03 The fix import function do not remove invalid imports the first time used, for example this class; - - - /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package ent.ServRadStructs; import reciete.recieteLine; /** * Structure for time-charge should contain an article of type service * @author Kent */ public class TimTid extends BaseFields { recieteLine art; @Override public String toString() { throw new UnsupportedOperationException("Not supported yet."); } } - - - I had the class "recieteLine" moved to an other package using "refactor->rename" but due to issue #192863 the refactoring process made some "leftover" to be fixed by hand, if you press ctl-shi-I to fix the imports the class will look like - - - * * To change this template, choose Tools | Templates * and open the template in the editor. */ package ent.ServRadStructs; import ent.structs.recieteLine; import reciete.recieteLine; /** * Structure for time-charge should contain an article of type service * @author Kent */ public class TimTid extends BaseFields { recieteLine art; @Override public String toString() { throw new UnsupportedOperationException("Not supported yet."); } } - - - As you can see it has not removed the second (and invalid) import line, it is however marked as an error. I've also seen this behaviour long before #192863 showed up. Workaround: press ctl-shi-I one more time.
*** This bug has been marked as a duplicate of bug 192371 ***