[ 
https://issues.apache.org/jira/browse/AXIOM-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andreas Veithen resolved AXIOM-358.
-----------------------------------

    Resolution: Fixed

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to