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.
dev build 200110040910 IBM JDK 1.3 The import management tool (IMT) is seriously broken. Not only does it recommend removing import statements which are necessary, but it also does not add required ones and sometimes it even corrupts the text inside the source-code after adding/removing import statements and/or converting references to FQNs. I'm going to attach some source-code I noticed problems with. You will notice that the IMT does not address the missing import statement for JFrame, and if one is added manually the IMT recommends you remove it.
Created attachment 2884 [details] Source code causing problems -- NOTE: This file is not meant to be compilable!
I'm going to include the original file before the IMT was ever run it. This file compiles on my side (but won't on yours because you'll be missing other class files). One very important thing to note: Line 85 reads: " public boolean isFocusTraversable()" If you enter IMT and click on FINISH (ie: stick to defaults) you will notice it replaces the text with: " public boolean javax.swing.ListModel {" which clearly corrupts the source-code.
Created attachment 2885 [details] Original source-code (compiles on my end)
Why is this reported against core ? Moving to more appropriate place.
fixed in trunk
Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.