Bug 93662 - Singature#getTypeParameters returns strange signature string
Summary: Singature#getTypeParameters returns strange signature string
Status: VERIFIED 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 M7   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-04 12:07 EDT by Dirk Baeumer CLA
Modified: 2005-05-12 11:07 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Baeumer CLA 2005-05-04 12:07:35 EDT
We have a IJavaElement representing AbstractMap<K, V>. The Java element has the
following resolved information:

Binding key: Ljava/util/AbstractMap<TK;TV;>;

Converting this into a signature using BindingKey.internalToSignature give me

<K:V:>Ljava.util.AbstractMap;

When I then ask this signature strings for its type parameters using
Signature.getTypeParameters give me ONE string with the following content:

K:V:

I am expected getting an array of two strings here, one have K and one having V.
Comment 1 Jerome Lanneluc CLA 2005-05-06 10:39:53 EDT
Changed Signature#getTypeParameters(...) to better handle type paramters with no
bounds.

Added regresison tests SignatureTests#testGetTypeParameters4() and
testGetTypeParameters5()
Comment 2 Frederic Fusier CLA 2005-05-12 11:07:08 EDT
Verified for 3.1 M7 using build I20050509-2010 + jdt.core HEAD.