Bug 8224

Summary: Organize imports adds explicit import to wildcard import
Product: [Eclipse Project] JDT Reporter: Knut Radloff <knut_radloff>
Component: UIAssignee: Martin Aeschlimann <martinae>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: other   
Whiteboard:

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.