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

javax.xml.stream.XMLStreamReader.getPrefix() returns empty string ("") instead of null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 6
    • xml

      Method javax.xml.stream.XMLStreamReader.getPrefix() returns empty string ("") instead of null for XMLEvent.START_ELEMENT which haven't prefix but have default namespace defined.
      A small test showing this problem is attached.

      This bug was found during analysis of test challenge which came from IBM regarding StAX tests presented in JAXP TCK and JCK.

      The bug exists in JDK 6 b98 and JAXP RI 1.4 b38.

            spericas Santiago Pericasgeertsen
            ashurygisunw Alexey Shurygin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: