JDK-6428590 : com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager does not demand namespace-prefixes
  • Type: Bug
  • Component: xml
  • Sub-Component: org.xml.sax
  • Affected Version: 1.4.0,5.0u10
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: x86,sparc
  • Submitted: 2006-05-22
  • Updated: 2012-04-25
  • Resolved: 2007-01-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other Other
5.0u12,tz1.3.2Fixed tz1.3.2Fixed
Related Reports
Duplicate :  
Relates :  
Description
This problem is identical to CR 6305029.
The same test case applies.


1.4.2 (TransformerIdentityImpl:404) would explicitly enable this feature:
reader.setFeature("http://xml.org/sax/features/namespace-prefixes", true);



See recommed change below
com.sun.org.apache.xalan.internal.xsltc.TransletException: 
> com.sun.org.apache.xalan.internal.xsltc.TransletException: 
> com.sun.org.apache.xalan.internal.xsltc.TransletException: 
> java.lang.NullPointerException
> 	at 
> com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.copy(SAXIm
> pl.java:1670)
> 	at 
> com.sun.org.apache.xalan.internal.xsltc.dom.SAXImpl.copy(SAXIm
> pl.java:1591)
> 	at 
> com.sun.org.apache.xalan.internal.xsltc.dom.DOMAdapter.copy(DO
> MAdapter.java:291)
> 	at GregorSamsa.template$dot$0()
> 	at GregorSamsa.applyTemplates()
> 	at GregorSamsa.transform()
> 	at 
> com.sun.org.apache.xalan.internal.xsltc.runtime.AbstractTransl
> et.transform(AbstractTranslet.java:594)
> 	at 
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.t
> ransform(TransformerImpl.java:644)
> 	at 
> com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.t
> ransform(TransformerImpl.java:281)
> 	at test.TestXmlReader.main(TestXmlReader.java:185)
> 
> Diff:
> 
> $ diff -dw 
> 1.5.0_07/com/sun/org/apache/xalan/internal/xsltc/dom/XSLTCDTMM
> anager.java 
> ~/c/p4/5.0/jdk-5-patch/src/com/sun/org/apache/xalan/internal/x
> sltc/dom/XSLTCDTMManager.java
> 53a54,57

>> >
>> >     private static final String NAMESPACE_PREFIXES_FEATURE =
>> >         "http://xml.org/sax/features/namespace-prefixes";
>> >

> 380a385

>> >                   

> reader.setFeature(NAMESPACE_PREFIXES_FEATURE, true);
> 
>

Comments
EVALUATION A patch has been applied to the our internal JAXP 1.3 workspace. We may need to create a new tag for intergration into Tiger.
14-06-2006