Community
Participate
Working Groups
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.
For source types, there is no way to know that this is an interface without resolving.
If it can't be fixed, then it should be documented in both methods' javadocs.
Already specified.
(Should have said: now specified)