Bug 68847

Summary: [1.5] DCR Signature: API to separate raw type and type parameters
Product: [Eclipse Project] JDT Reporter: Martin Aeschlimann <martinae>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dirk_baeumer, tobias_widmer
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Martin Aeschlimann CLA 2004-06-29 06:20:33 EDT
20040629

"QList<QString;>;" is a signature notation for a parameterized type. Signature
should offer API to get the raw type "QList;" and the type parameters { "QString;" }

Signature.getTypeParameters sounds useful for the second request, but it expects
the signature to start with '<'
Comment 1 Philipe Mulet CLA 2004-06-29 06:35:37 EDT
Agreed.

#getParameterizedTypeErasure()
#getParameterizedTypeArguments()

(maybe we should drop the leading 'Parameterized').

#getTypeParameters() is meant for declaration of type parameters, as opposed 
to your request for decoding arguments of a parameterized type.
Comment 2 Jerome Lanneluc CLA 2004-08-23 10:44:30 EDT
Added getTypeErasure(...) and getTypeArguments(...).
Added tests SignatureTests#testGetTypeArguments1-5() and testGetTypeErasure1-2
().
Comment 3 David Audel CLA 2004-09-22 11:00:14 EDT
Verified in I200409212000.