JDK-6220274 : Can't assign value to XML_ENTITIES_RESOURCE with 1.4.2_05/06 JDK
Type:Bug
Component:xml
Sub-Component:javax.xml.transform
Affected Version:1.4.2_05
Priority:P2
Status:Resolved
Resolution:Fixed
OS:solaris
CPU:x86
Submitted:2005-01-21
Updated:2012-04-24
Resolved:2005-04-25
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.
Java plugin issue - can't assign value to a variable with 1.4.2_05/06 JDK
###@###.### 2005-1-21 22:10:07 GMT
Comments
EVALUATION
org.apache.xalan.serialize.CharInfo.XML_ENTITIES_RESOURCE is defined as
public static final String XML_ENTITIES_RESOURCE = "XMLEntities.res";
in 1.4.2_06, while it is defined as
public static String XML_ENTITIES_RESOURCE = "XMLEntities.res";
in 1.4.2.
Since XML_ENTITIES_RESOURCE is changed to final, this is the reason why developers can't assign value to XML_ENTITIES_RESOURCE through Jav Plug-in anymore. Reassign it to JAXP team for further evaluation to determine if the API change is intentional.
###@###.### 2005-1-24 20:11:18 GMT
API change is intentional at both Sun & Apache.
This change is part of a security fix.
Bug is being closed.
###@###.### 2005-03-25 20:20:13 GMT
Opening this bug again. This is an escalated problem and customer wants the fix in 1.4.2 update release. A binary with the following changes was provided to customer for testing and customer confirmed back that it resolves their problem.
------- SerializerToHTML.java -------
81a82,83
> import java.security.*;
>
101,102c103,111
< protected static CharInfo m_htmlcharInfo =
< new CharInfo(CharInfo.HTML_ENTITIES_RESOURCE);
---
> protected static CharInfo m_htmlcharInfo = null;
>
> static {
> m_htmlcharInfo = (CharInfo)AccessController.doPrivileged(new PrivilegedAction() {
> public Object run() {
> return new CharInfo(CharInfo.HTML_ENTITIES_RESOURCE);
> }
> });
> }
------- SerializerToXML.java -------
92a93,94
> import java.security.*;
>
292,293c294,302
< protected static CharInfo m_xmlcharInfo =
< new CharInfo(CharInfo.XML_ENTITIES_RESOURCE);
---
> protected static CharInfo m_xmlcharInfo = null;
>
> static {
> m_xmlcharInfo = (CharInfo)AccessController.doPrivileged(new PrivilegedAction() {
> public Object run() {
> return new CharInfo(CharInfo.XML_ENTITIES_RESOURCE);
> }
> });
> }
This fix will be integrated into 1.4.2_09 b01.
###@###.### 2005-04-18 05:27:07 GMT