United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6220274 : Can't assign value to XML_ENTITIES_RESOURCE with 1.4.2_05/06 JDK

Details
Type:
Bug
Submit Date:
2005-01-21
Status:
Resolved
Updated Date:
2012-04-24
Project Name:
JDK
Resolved Date:
2005-04-25
Component:
xml
OS:
solaris
Sub-Component:
javax.xml.transform
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
1.4.2_05
Fixed Versions:
1.4.2_09 (b01)

Related Reports

Sub Tasks

Description
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
                                     
2005-01-24



Hardware and Software, Engineered to Work Together