Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-358

OMStAXWrapper#hasNext may return incorrect value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.11
    • 1.2.12
    • DOOM, LLOM
    • None

    Description

      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.

      Attachments

        Activity

          People

            veithen Andreas Veithen
            veithen Andreas Veithen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: