Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6631264

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 6
    • 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()!)

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: