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 118994

Summary: [60cat] Add Quickfix for Star Import
Product: java Reporter: rationalpi <rationalpi>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: blocker CC: malfunction84, markiewb
Priority: P3    
Version: 6.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: ENHANCEMENT Exception Reporter:

Description rationalpi 2007-10-16 05:14:10 UTC
[ BUILD # : 200710150000 ]
[ JDK VERSION : 1.6.0_02 ]

There is no quick fix available for the Star Import (e.g. import
java.util.*;) hint.

It would be nice if the IDE could generate the specific import
statements that would replace the star import statement as a quick
fix for detecting the use of a star import.

Steps to Reproduce
------------------
1. Enabled the "Star import" hint under Java Code -> Hints -> Imports
section of the IDE's Options/Preferences.

2. Create a new Java class.

3. Import something using a star (e.g. "import java.util.*;)

4) Note the editor hint in the margin and the lack of a quick fix for
it.

Josh/RationalPi