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

Upgrade JAXP/SJSXP to JSR-173 StAX v1.2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 6, 7
    • xml
    • h1164
    • generic, x86
    • generic, windows_xp
    • Verified

        JSR 173: Streaming API for XML Maintenance Review 3 has passed and finalized on 7/6/09. Refer to http://jcp.org/en/jsr/detail?id=173. The resulting version is StAX 1.2.

        We've decided to upgrade jaxp/sjsxp to this latest release. We will then integrate the change into JDK7, JDK6 and 6-Open.

        JAXP/SJSXP and JDK6 and 7 currently implement StAX 1.0, which requires us to implement changes made in both StAX 1.1 and 1.2. StAX 1.1 contains mostly specification clarafication and correction of the JavaDoc errors. There was also an optional DTDStreamReader interface [1] requested by JSR 280. Revision 1.2 mainly deprecated three factory newInstance methods and replaced them with newFactory methods. This change was due to the fact that the original design used a wrong class loader, e.g. bootclassloader when the parameter is null. Note that, our implementation in jaxp 1.4 and jdk6/7 correctly used context class loader with additional secure measure. However, this raises conformance issue, which needs to be evaluated during the implement of rev 1.2.

        [1] http://java.sun.com/javame/reference/apis/jsr280/javax/xml/stream/DTDStreamReader.html

              spericas Santiago Pericasgeertsen
              joehw Joe Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: