Bug 267432 - Signature.getParameterTypes(..) or getParameterCount(..) doesn't handle some generic signatures
Summary: Signature.getParameterTypes(..) or getParameterCount(..) doesn't handle some ...
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.6 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-06 14:49 EST by Olivier Thomann CLA
Modified: 2010-03-09 01:24 EST (History)
1 user (show)

See Also:


Attachments

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