Bug 99669 - [organize import] Organize Imports could automatically disambiguate references to parameterized types [organize imports]
Summary: [organize import] Organize Imports could automatically disambiguate reference...
Status: RESOLVED DUPLICATE of bug 87950
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-13 10:50 EDT by Tobias Widmer CLA
Modified: 2005-06-15 04:45 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Widmer CLA 2005-06-13 10:50:01 EDT
Consider the following snippet in a 1.5 project with no other dependencies 
than a 1.5 JRE:

package p;
public class Test {
	public void foo() {
		List<String> list= new ArrayList<String>();
	}
}

When invoking Organize Imports to correct the missing import declarations, 
Organize Imports displays a dialog to choose between java.awt.List and 
java.util.List.

Organize Imports could be smarter here and determine the correct type from the 
type reference (a cheap comparison of type parameters would do the job)
Comment 1 Dirk Baeumer CLA 2005-06-13 11:23:03 EDT
This in not 5.0 related. Same is true for < 5.0.

Not important for 3.1
Comment 2 Martin Aeschlimann CLA 2005-06-15 04:45:33 EDT

*** This bug has been marked as a duplicate of 87950 ***