Bug 94641 - Code assist does not display parameters for constructor with type parameters
Summary: Code assist does not display parameters for constructor with type parameters
Status: CLOSED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 RC2   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-11 05:59 EDT by David Saff CLA
Modified: 2005-06-10 12:15 EDT (History)
0 users

See Also:


Attachments
Proposed patch (3.09 KB, text/plain)
2005-06-03 07:11 EDT, David Audel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.