Bug 97234

Summary: [1.5][assist] Completion in constructor type parameter should first provide corresponding type parameter of declaring type
Product: [Eclipse Project] JDT Reporter: Frederic Fusier <frederic_fusier>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED INVALID QA Contact:
Severity: enhancement    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Frederic Fusier CLA 2005-05-30 08:58:17 EDT
Using RC1.

I modify following line:
HashSet visited = new HashSet();

to modify with following 1.5 code:
HashSet<IJavaProject> visited = new HashSet<IJava|>();

I try to complete (| shows where...) and get a list of all IJava* interfaces
(starting with IJavaElement* ones). I would expect to have directly IJavaProject
insterted (ie. the only proposal) or at least IJavaProject put on top of the list...
Comment 1 Frederic Fusier CLA 2005-05-30 09:03:28 EDT
Forget it. Code assist already offers a smart way if I complete early:
HashSet<IJavaProject> visited = new HashSet|();

Then I get expected behavior (ie. only one proposal):
HashSet<IJavaProject> visited = new HashSet<IJavaProject>();