Bug 78520 - [model] IType#getSuperInterfaceTypeSignatures() doesn't include type arguments
Summary: [model] IType#getSuperInterfaceTypeSignatures() doesn't include type arguments
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-12 11:33 EST by Markus Keller CLA
Modified: 2005-02-15 06:47 EST (History)
0 users

See Also:


Attachments
BinaryType.diff (736 bytes, patch)
2005-01-05 13:48 EST, Tom Hofmann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2004-11-12 11:33:01 EST
200411111200

Calling IType#getSuperInterfaceTypeSignatures() on the IType for binary type
'Integer' (from an 1.5 rt.jar) yields '[Ljava.lang.Comparable;]'. The type
argument from the declaration ('implements Comparable<Integer>') is missing.
Comment 1 Jerome Lanneluc CLA 2005-01-05 12:25:38 EST
Fixed BinaryType#getSuperInterfaceSignatures() to use the generic signature if
present.
Added regression test ClassFileTests#testGetSuperInterfaceSignatures()
Comment 2 Tom Hofmann CLA 2005-01-05 13:48:42 EST
Created attachment 16949 [details]
BinaryType.diff

Now the the signatures returned use '/' as package fragment separator - the
returned names should be filtered through ClassFile.translatedName as well, see
the enclosed patch.
Comment 3 Jerome Lanneluc CLA 2005-01-05 13:59:16 EST
You're right. Thanks for the fix Tom. It is now released and the test updated.
Comment 4 David Audel CLA 2005-02-15 06:47:02 EST
Verified in I20050214-0927