Summary: | Add Java Exception Breakpoint is broken | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Jörg von Frantzius <jfrantzius> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.1 M2 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Jörg von Frantzius
2004-06-21 06:51:52 EDT
I am unable to reproduce this in my workspace. In my workspace, the exception is coming from a jar in my JRE (a 1.4.2 JRE). Is the jar on one of your project's build paths? Yes, I have xerces.jar (version 1.4.4) in my buildpath (shows up in project's properties buildpath). The project is a JDK 1.3.1_09 project, by the way, which is why I have to use a separate xerces.jar in the first place. If you want to reproduce, you might want to setup such a project and put xerces.jar in the buildpath. You can find the .jar at http://xml.apache.org/dist/xerces-j/Xerces-J-bin.1.4.4.zip I can reproduce the problem when the xerces jar is on the buildpath and a JRE with SaxException is also on buildpath. If I change to use a JRE that does not contain xerces/SaxException then I can add the breakpoint successfully. In the failure case, there is more than one SaxException on the buildpath, and adding the first works (from the JRE). Adding the second fails. Steppin thru the code it looks like the computed type hierarchy is showing "null" for the superclass of SaxException. Steps: * Create a new project, build with a 1.4.2 JRE (IBM or Sun) * Add external xerces jar to the buildpath (version 1.4.4, as referenced above) * Try to create an exception breakpoint for SaxException, from the 1.4.4 jar -> claims that SaxException is not a subclass of throwable Re-assigning to JCORE for investigation Changed HierarchyBuilder.lookupBinaryHandle(...) to return the focus handle instead of the visible one. Added regression test TypeHierarchyTests.testBinaryTypeHiddenByOther Verified for 3.1 M2 with build I200409230010. |