Bug 8224 - Organize imports adds explicit import to wildcard import
Summary: Organize imports adds explicit import to wildcard import
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-01-23 13:42 EST by Knut Radloff CLA
Modified: 2002-02-13 08:38 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Knut Radloff CLA 2002-01-23 13:42:36 EST
build 20020122

I have a Java file that imports the entire package containing a referenced 
type. My organize import threshold is set to 1 because I never want explicit 
type imports. When I select "organize imports" an explicit import for the 
already imported type is added. If there is no import at all organize imports 
adds the wildcard and the explicit import.
In the example below "organize imports" would change the import list to:
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.widgets.Shell;

-----------
import org.eclipse.swt.widgets.*;
public class Bug_CodeAssist {
	public static void main(String [] args) {		
		Shell shell = new Shell();		
	}
}
Comment 1 Erich Gamma CLA 2002-01-24 01:28:23 EST
This got fixed in the fix build for 20020122.
Martin please confirm and close.
Comment 2 Martin Aeschlimann CLA 2002-01-24 07:07:21 EST
fixed > 20122
Comment 3 Martin Aeschlimann CLA 2002-02-13 08:38:55 EST
Verified. ->20020205. JRT.