Community
Participate
Working Groups
When I try to select this, it says: "Selected type is not a subclass of java.lang.Throwable" but java.lang.NoClassDefFoundError is a subclass of java.lang.Throwable.
By the way, I just tried other exceptions, and some it accepts and others it doesn't. I haven't been able to detect a pattern as to which ones work and which don't.
The supertype hierarchy appears incomplete. We traverse the hierarchy, but it stops after LinkageError (who's supertype returns null). You can follow the loop in "AddExceptionDilaog.getException(IType)".
*** Bug 53312 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 54043 ***
*** Bug 54335 has been marked as a duplicate of this bug. ***
After having investigated bug 54043, it's not a duplicate.
I can also reproduce this bug with StringIndexOutOfBoundsException... There's also test case provided by Daniel in bug 54043: 1. have JFace as binary 2. open TreeViewer in JavaEditor 3. press Ctrl+O 4. press Ctrl+O Observe: only one level of inheritance is shown even though we ask the type hierarchy for all super types getAllSupertypes(IType)
Fixed. Now the superclasses are well computed for binary files. This problem occured when clients create a new super hierarchy type on a binary type (method newSuperhierarchyType(...) of BinaryType). While computing type hierarchy, only direct superclass was stored in classToSuperclass map... Regression due to bug 52384 fix. [jdt-core-internal] Changes made in method resolve(IGenericType) of HierarchyResolver. After remembering the supplied type and its binding, then loop to also remember supertypes and superinterfaces... Test case added in separated class TypeHierarchyTests2 and new workspace test project TypeHierarchy2 as adding this test in TypeHierarchyTests has bad side effects I could not fixed without lib.jar source files...
*** Bug 54513 has been marked as a duplicate of this bug. ***
*** Bug 53500 has been marked as a duplicate of this bug. ***
*** Bug 54834 has been marked as a duplicate of this bug. ***
Moved test case to TypeHierarchyTests
Verified in build I200403250800.