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 61022 - fix imports should optional generate package imports.
Summary: fix imports should optional generate package imports.
Status: REOPENED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks: 47599
  Show dependency tree
 
Reported: 2005-07-15 11:30 UTC by stroeter
Modified: 2010-09-23 08:35 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description stroeter 2005-07-15 11:30:30 UTC
The "fix imports" command of NetBeans 4.1 seems to generate allways class
imports.  Some programmers prefer package imports (import package.*). 

One reason for this is that the javac bytecode compiler compiles all class
imports - even if the imported class is not used at all within the declaring
class. This could cause class dependencies that are not detected by the usual
dependency checker tools (because they use the bytecode, not the sourcode to
check the dependencies..)

An option to generate import package statements by default would be a solution
for this problem.
Comment 1 zeljkot 2008-04-24 09:27:32 UTC

*** This issue has been marked as a duplicate of 57960 ***
Comment 2 zeljkot 2008-04-24 09:37:32 UTC
Incorrectly marked as duplicate