sjsxp
  1. sjsxp
  2. SJSXP-45

XMLStreamReader.hasName() should return false for ENTITY_REFERENCE

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: current
    • Fix Version/s: milestone 1
    • Component/s: www
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      45

      Description

      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()!).

        Activity

        Hide
        Joe Wang added a comment -

        Fixed as indicated in the bug report that hasName should return true only for
        START_ELEMENT and END_ELEMENT, which is consistent with getName. This fix will
        be ported to jaxp and considered for a jdk6 update release.

        Show
        Joe Wang added a comment - Fixed as indicated in the bug report that hasName should return true only for START_ELEMENT and END_ELEMENT, which is consistent with getName. This fix will be ported to jaxp and considered for a jdk6 update release.

          People

          • Assignee:
            sjsxp-issues
            Reporter:
            cowtowncoder
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: