Bug 267432

Summary: Signature.getParameterTypes(..) or getParameterCount(..) doesn't handle some generic signatures
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: jarthana
Version: 3.5   
Target Milestone: 3.6 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2009-03-06 14:49:37 EST
These methods will fail with IllegalArgumentException when given the following method descriptor:
<TYPE:Ljava/lang/Object;>(Ljava/lang/Object;Ljava/lang/Class<TTYPE;>;)TTYPE;

This is a valid method descriptor. The method has a type variable.

Both methods expect a '(' to start the descriptor. It should "eat" the type variables if any first.
Comment 1 Olivier Thomann CLA 2010-03-05 16:25:49 EST
Closing as INVALID.
This is no longer an issue.
Added regression test:
org.eclipse.jdt.core.tests.model.SignatureTests#testGetParameterCount19

And updated test:
org.eclipse.jdt.core.tests.model.SignatureTests#testGetParameterTypes
Comment 2 Jay Arthanareeswaran CLA 2010-03-09 01:24:44 EST
Verified for 3.6M6 by inspecting the new/modified tests.