You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2011/03/27 15:09:05 UTC

[jira] [Commented] (AXIOM-358) OMStAXWrapper#hasNext may return incorrect value

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

Hudson commented on AXIOM-358:
------------------------------

Integrated in ws-axiom-trunk #359 (See [https://hudson.apache.org/hudson/job/ws-axiom-trunk/359/])
    AXIOM-358: Make sure that the hasNext() method in OMStAXWrapper/SwitchingWrapper conforms to the StAX specs and returns false if and only if the current event is END_DOCUMENT.


> OMStAXWrapper#hasNext may return incorrect value
> ------------------------------------------------
>
>                 Key: AXIOM-358
>                 URL: https://issues.apache.org/jira/browse/AXIOM-358
>             Project: Axiom
>          Issue Type: Bug
>          Components: DOOM, LLOM
>    Affects Versions: 1.2.11
>            Reporter: Andreas Veithen
>            Assignee: Andreas Veithen
>             Fix For: 1.2.12
>
>
> The StAX specification defines the XMLStreamReader#hasNext() method as follows:
> "Returns true if there are more parsing events and false if there are no more events. This method will return false if the current state of the XMLStreamReader is END_DOCUMENT."
> In some cases, the hasNext method in OMStAXWrapper/SwitchingWrapper already returns false on the event immediately preceding the END_DOCUMENT event. This means that when using a loop constructed with hasNext, the END_DOCUMENT event is missed.
> Note that some code in Axis2 seems to depend on this incorrect behavior and will have to be fixed.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

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