JDK-6809409 : jaxp Issue 56 SAXException doesn't do the exception chaining properly
Type:Bug
Component:xml
Sub-Component:org.xml.sax
Affected Version:6
Priority:P3
Status:Closed
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2009-02-24
Updated:2017-12-20
Resolved:2011-05-10
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
SAXException *still* doesn't do the proper exception chaining, masking the root
cause of the problem.
Add the following method to SAXException:
public Throwable getCause() {
return exception;
}
Comments
WORK AROUND
public class SAXExceptionExt extends SAXException {
private Exception exception;
public SAXExceptionExt(Exception e) {
super(e);
exception = e;
}
public Throwable getCause() {
return exception;
}
}
26-02-2009
EVALUATION
SAXException should implement getCause in order to do the proper exception chaining.