axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <>
Subject [jira] Updated: (AXIS2-4463) Unreachable code in JAXBAttachmentUnmarshaller
Date Sat, 15 Aug 2009 11:24:14 GMT


Andreas Veithen updated AXIS2-4463:

    Assignee: Rich Scheuerle


Since you wrote that code, can you have a look?

> Unreachable code in JAXBAttachmentUnmarshaller
> ----------------------------------------------
>                 Key: AXIS2-4463
>                 URL:
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: jaxws
>            Reporter: Andreas Veithen
>            Assignee: Rich Scheuerle
>            Priority: Minor
> While reviewing some code, I noticed that org.apache.axis2.datasource.jaxb.JAXBAttachmentUnmarshaller
contains unreachable code. There are two places where the following if statement is used:
> if (xmlStreamReader instanceof OMXMLStreamReader) {
>     ...
> }
> "xmlStreamReader" is an attribute of JAXBAttachmentUnmarshaller, but this attribute is
never initialized and remains null (this is obviously a bug; see code in the constructor).
Since "null instanceof X" is always false, the code inside the if statement is unreachable.
> Since this code is related to XOP/MTOM processing, I'm wondering how it is possible that
MTOM actually works in JAX-WS (does it?). Also it would be interesting to analyze why this
issue doesn't trigger any test failure.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message