Bug 93662

Summary: Singature#getTypeParameters returns strange signature string
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: CoreAssignee: Jerome Lanneluc <jerome_lanneluc>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.