United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6861589 Upgrade JAXP/SJSXP to JSR-173 StAX v1.2
JDK-6861589 : Upgrade JAXP/SJSXP to JSR-173 StAX v1.2

Details
Type:
Bug
Submit Date:
2009-07-16
Status:
Closed
Updated Date:
2012-04-25
Project Name:
JDK
Resolved Date:
2009-08-19
Component:
xml
OS:
generic,windows_xp
Sub-Component:
javax.xml.stream
CPU:
x86,generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6,7
Fixed Versions:
1.4.0 (h1164)

Related Reports
Backport:
Backport:
Backport:
Duplicate:
Relates:
Relates:

Sub Tasks

Description
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

                                    

Comments
EVALUATION

Implemented all changes required by JSR 173 MR3. Verified that the all the new TCKs provided by Oracle pass. Note that one of the existing signature TCK tests now fails due to the new methods required by the MR.
                                     
2009-08-19



Hardware and Software, Engineered to Work Together