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.

Bug 16321 - Import Management Tool is broken
Summary: Import Management Tool is broken
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-08 04:41 UTC by _ gtzabari
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Source code causing problems -- NOTE: This file is not meant to be compilable! (10.98 KB, text/plain)
2001-10-08 04:43 UTC, _ gtzabari
Details
Original source-code (compiles on my end) (10.93 KB, text/plain)
2001-10-08 04:50 UTC, _ gtzabari
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2001-10-08 04:41:55 UTC
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.
Comment 1 _ gtzabari 2001-10-08 04:43:07 UTC
Created attachment 2884 [details]
Source code causing problems -- NOTE: This file is not meant to be compilable!
Comment 2 _ gtzabari 2001-10-08 04:49:16 UTC
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.
Comment 3 _ gtzabari 2001-10-08 04:50:28 UTC
Created attachment 2885 [details]
Original source-code (compiles on my end)
Comment 4 Svata Dedic 2001-10-08 15:01:37 UTC
Why is this reported against core ? Moving to more appropriate place.
Comment 5 Tomas Hurka 2001-10-11 17:59:58 UTC
fixed in trunk
Comment 6 Jan Becicka 2002-06-27 13:22:40 UTC
Verified
Comment 7 Quality Engineering 2003-07-01 13:16:36 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.