geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GERONIMO-6509) XMLStreamException not calling "super(th)" in constructors
Date Wed, 27 Nov 2013 15:20:46 GMT

    [ https://issues.apache.org/jira/browse/GERONIMO-6509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13833867#comment-13833867
] 

Guillaume Nodet commented on GERONIMO-6509:
-------------------------------------------

Sending        src/main/java/javax/xml/stream/FactoryConfigurationError.java
Transmitting file data .
Committed revision 1546068.


> XMLStreamException not calling "super(th)" in constructors
> ----------------------------------------------------------
>
>                 Key: GERONIMO-6509
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-6509
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: specs
>            Reporter: Daniel Kulp
>            Assignee: Guillaume Nodet
>
> The XMLStreamException in spec stax-api 1.2 is not calling the super(th) or super(msg,
th) for the constructors that take a throwable.   There are two problems this causes:
> 1) The "cause" is never set so the exception.getCause() always returns null and potentially
important information in the cause is discarded.
> 2) For the super(th) one,  no message is set at all.    Thus, all information that could
be useful is lost unless I specifically cast the exception to an XMLStreamException and call
the getNestedException().   Any generic exception handling mechanism would not be able to
provide a useful error message.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message