Community
Participate
Working Groups
To see the problem, run this piece of JUnit plugin test code. You will have to implement getJavaProject(): public void check(String className) throws Exception { // getJavaProject() simply gets any java project with rt.jar on // classpath final IType currentType = getJavaProject().findType(className); final IType[] superTypes = currentType.newSupertypeHierarchy(null) .getAllSupertypes(currentType); for (int i = 0; i < superTypes.length; i++) { IType type = superTypes[i]; if (type.getFullyQualifiedName().equals("java.lang.Object")) return; } fail("Object is not a super type of '" + className + "'"); } public void testEclipse() throws Exception { check("java.awt.GraphicsCallback"); check("java.awt.GraphicsCallback$PrintAllCallback"); }
Cannot reproduce. Please reopen if you have specific steps.