Bug 94641

Summary: Code assist does not display parameters for constructor with type parameters
Product: [Eclipse Project] JDT Reporter: David Saff <david>
Component: CoreAssignee: David Audel <david_audel>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed patch none

Description David Saff CLA 2005-05-11 05:59:49 EDT
Given code:

public class AnnotationTestTest {
	public void test00countTestCases() throws Exception {
		new ArrayList<String>();
	}
}

place the cursor inside the parens for the constructor call, and invoke code
assist: only methods on Object will be suggested, no parameter help.

Removing the type parameter:

public class AnnotationTestTest {
	public void test00countTestCases() throws Exception {
		new ArrayList();
	}
}

Gives the expected list of possible ArrayList constructors.
Comment 1 Philipe Mulet CLA 2005-06-03 07:03:07 EDT
+1 for RC2
Comment 2 David Audel CLA 2005-06-03 07:11:37 EDT
Created attachment 22307 [details]
Proposed patch
Comment 3 David Audel CLA 2005-06-03 07:15:51 EDT
Fixed and tests added
  GenericsCompletionParserTest#test0193() -> test0195()
  CompletionTest_1_5#test00236()
Comment 4 Olivier Thomann CLA 2005-06-06 15:09:32 EDT
Verified using N20050606-0010 + JDT/Core HEAD
Comment 5 Olivier Thomann CLA 2005-06-10 12:15:42 EDT
Verified in I20050610-0010.