You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2006/02/14 07:40:08 UTC

[jira] Resolved: (XERCESJ-1117) LSException should contain cause exception

     [ http://issues.apache.org/jira/browse/XERCESJ-1117?page=all ]
     
Michael Glavassevich resolved XERCESJ-1117:
-------------------------------------------

    Resolution: Fixed

Matej, thanks for the contribution.  I've integrated it into SVN with a few changes.  There were several other places in the code which create an LSException from another exception which weren't covered by your patch. I've applied the improvement to all of those places and moved all of the reflection code into org.apache.xerces.util.DOMUtil since it would have been duplicated many times. Instead of looking up the initCause method each time it's needed, it will only happen once now.

> LSException should contain cause exception
> ------------------------------------------
>
>          Key: XERCESJ-1117
>          URL: http://issues.apache.org/jira/browse/XERCESJ-1117
>      Project: Xerces2-J
>         Type: Improvement
>   Components: DOM (Level 3 Load & Save)
>     Versions: 2.7.1
>     Reporter: Matej Kraus
>     Assignee: Michael Glavassevich
>  Attachments: DOMParserImpl.java.patch, DOMSerializerImpl.java.patch
>
> LSException should contain cause exception to be able to recognize IOException in application.
> There are two patches in attachement for DOMParserImpl and DOMSerializerImpl.
> Both call initCause method using reflection. Reflection is used because initCause method is available on Throwable since Java 1.4.
> Additionally dummy e.printStackTrace() was removed from DOMSerializerImpl.java.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org