Bug 86313 - anonymous source IType of an interface type should return interface on #getSuperInterfaceNames()
Summary: anonymous source IType of an interface type should return interface on #getSu...
Status: RESOLVED WORKSFORME
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: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-23 12:43 EST by Markus Keller CLA
Modified: 2006-03-28 10:37 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2005-02-23 12:43:38 EST
I20050222-0821

An anonymous source IType of an interface type should return the implemented
interface on #getSuperInterfaceNames(), and not on #getSuperclassName().

Example:

	void x() {
		new Cloneable() {/*anonymous*/};
	}

#getSuperInterfaceNames() --> []; expected ["Cloneable"]
#getSuperclassName() --> "Cloneable"; expected: "java.lang.Object"

Works as expected for binary types.
Comment 1 Jerome Lanneluc CLA 2005-02-23 12:47:38 EST
For source types, there is no way to know that this is an interface without
resolving.
Comment 2 Markus Keller CLA 2005-04-15 06:13:57 EDT
If it can't be fixed, then it should be documented in both methods' javadocs.
Comment 3 Jerome Lanneluc CLA 2006-03-28 10:36:49 EST
Already specified.
Comment 4 Jerome Lanneluc CLA 2006-03-28 10:37:18 EST
(Should have said: now specified)