Community
Participate
Working Groups
I20040302 - Select a test project in the Package Explorer - context menu > New > Test Case - (if asked: accept to add junit to the build path) - Enter a name -> Error message: "Superclass does not implement the 'junit.framework.Test' interface.", even though the superclass junit.framework.TestCase does implement Test. The problem is apparent in TestSearchEngine.isTestImplementor(IType type) (project org.eclipse.jdt.junit): 'type' is the (binary) type junit.framework.TestCase, and ... ITypeHierarchy typeHier= type.newSupertypeHierarchy(null); IType[] superInterfaces= typeHier.getAllInterfaces(); ... results in an empty array of superInterfaces. It was not empty in M6.
Moving to jdt-core: As I understand it, ITypeHierarchy#getAllInterfaces() should include junit.framework.Test when the supertype hierarchy was created on junit.framework.TestCase.
*** This bug has been marked as a duplicate of 53095 ***