United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6890987 StAX v1.2 incorrect method signature
JDK-6890987 : StAX v1.2 incorrect method signature

Details
Type:
Bug
Submit Date:
2009-10-13
Status:
Resolved
Updated Date:
2012-04-25
Project Name:
JDK
Resolved Date:
2009-10-13
Component:
xml
OS:
generic
Sub-Component:
javax.xml.stream
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
1.4.0 (h1177)

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
It appears to be a signature bug in the JAXP 1.4 build 'h1164' due to the fix for 6861589. 

(The problem was encountered while running the JDK 6u18 "2009-10-12-060623.wsmgr.j2se" build taken from [1] for testing the JCK 6b alternative bundle).

I've run the JCK 6b signature test with the installed JCK 6b alt bundle promoted build [2] and gotten the following error:

====================================

Missing Methods
---------------

javax.xml.stream.XMLOutputFactory:      method public static
javax.xml.stream.XMLOutputFactory
javax.xml.stream.XMLOutputFactory.newFactory(java.lang.String,java.lang.ClassLoader)

Added Methods
-------------

javax.xml.stream.XMLOutputFactory:      method public static
javax.xml.stream.XMLInputFactory
javax.xml.stream.XMLOutputFactory.newFactory(java.lang.String,java.lang.ClassLoader)

====================================

As you can see the new XMLOutputFactory.newFactory(String, ClassLoader) method
of the JDK 6u18 returns the XMLInputFactory type that contradicts to p. 4 of the
StAX 1.2 specification [3]. The method must return the XMLOutputFactory type
instead.

I've checked that the source file javax/xml/stream/XMLOutputFactory.java from
Oracle, you recieved from the JAXP team some time ago, and the corresponding source file from the JDK source bundle, taken from the jprt, doesn't match in terms of the method signature.

[1] /net/prt-archiver.sfbay.sun.com/data/jprt/archive/2009/10 
[2] /java/re/jck/6b/alt01/bundles/latest
[3] http://ccc.sfbay/2180205/attachment/jsr173MR3.htm

                                    

Comments
EVALUATION

Fixed in jaxp 1.4.
                                     
2009-10-13



Hardware and Software, Engineered to Work Together