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 10695 - [Win2K NB 3.2.12] Import Management Tool generates code before package statement
Summary: [Win2K NB 3.2.12] Import Management Tool generates code before package statement
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-26 16:22 UTC by javaiware
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
File that will be subject to the Import Management Tool (4.40 KB, text/plain)
2001-07-21 01:02 UTC, javaiware
Details
File after the Import Management Tool screwed it up (4.42 KB, text/plain)
2001-07-21 01:02 UTC, javaiware
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javaiware 2001-03-26 16:22:54 UTC
Hi,

When I use the Import Management Tool it generates the import statements at the 
top of the file, so before the package statement and therefor the file doesn't 
compile.

Here're the selections I made for the file I will attach (I will also attach 
the new file):

1) The first page doesn't show anything to select, so just click NEXT
2) java.lang.String -> Don't use FQN
   java.util.Hashmap -> use FQN
   org.apache.log4j.Category -> Don't use FQN
3) org.apache.log4j -> Use single named import
   java.util -> Use package import

Iwan
Comment 1 javaiware 2001-03-26 16:25:43 UTC
Created attachment 884 [details]
File that will be subject to the Import Management Tool
Comment 2 javaiware 2001-03-26 16:30:28 UTC
Created attachment 885 [details]
File after the Import Management Tool screwed it up
Comment 3 Svata Dedic 2001-03-26 16:38:16 UTC
Lowering priority - it does not seem to be deterministic.

it's more a problem with the code generator than with the import tool itself; 
will check.
Comment 4 Svata Dedic 2001-03-27 16:54:06 UTC
Fixed potentially buggy code in the code generator. Positioning should now be 
clear, simple and fast :) until a next bug is found.
Comment 5 Jan Becicka 2001-04-09 16:34:25 UTC
[release32-23] Verified
Comment 6 Jan Chalupa 2001-05-05 23:24:09 UTC
Target milestone -> 3.2
Comment 7 Quality Engineering 2003-07-01 13:14:33 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.