sjsxp issue 45: XMLStreamReader.hasName() should return false for ENTITY_REFERENCE

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 6
    • Component/s: xml
    • 1.4
    • generic
    • generic
    • Verified

        Although this is quite unintuitive, Javadocs are quite clear in that
        XMLStreamReader.hasName() should only return true for START_ELEMENT and
        END_ELEMENT. For ENTITY_REFERENCE, thereby, it should return false: this even
        though there is a name that can be accessed (but only via getLocalName(), NOT
        via getName()!)

              Assignee:
              Joe Wang
              Reporter:
              Joe Wang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: