Bug 86313

Summary: anonymous source IType of an interface type should return interface on #getSuperInterfaceNames()
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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)