United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6809409 jaxp Issue 56 SAXException doesn't do the exception chaining properly
JDK-6809409 : jaxp Issue 56 SAXException doesn't do the exception chaining properly

Details
Type:
Bug
Submit Date:
2009-02-24
Status:
Closed
Updated Date:
2012-04-25
Project Name:
JDK
Resolved Date:
2011-05-10
Component:
xml
OS:
generic
Sub-Component:
org.xml.sax
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:
1.4.0 (1.4)

Related Reports
Backport:
Backport:
Backport:

Sub Tasks

Description
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
EVALUATION

SAXException should implement getCause in order to do the proper exception chaining.
                                     
2009-02-26
WORK AROUND

public class SAXExceptionExt  extends SAXException {
    private Exception exception;
    public SAXExceptionExt(Exception e) {
        super(e);
        exception = e;
    }
    public Throwable getCause() {
        return exception;
    }


}
                                     
2009-02-26



Hardware and Software, Engineered to Work Together