Bug 68847 - [1.5] DCR Signature: API to separate raw type and type parameters
Summary: [1.5] DCR Signature: API to separate raw type and type parameters
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-29 06:20 EDT by Martin Aeschlimann CLA
Modified: 2004-09-22 11:00 EDT (History)
2 users (show)

See Also:


Attachments

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