minchau 2005/04/06 23:02:51
Modified: java/src/org/apache/xml/serializer Encodings.java
Log:
Appling fix for XALANJ-2086, which pointed out that
findCharToByteConverterMethod()
always returned null. This bug was introduced some time ago during some
security
fixes.
Revision Changes Path
1.13 +5 -2
xml-xalan/java/src/org/apache/xml/serializer/Encodings.java
Index: Encodings.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xml/serializer/Encodings.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- Encodings.java 7 Apr 2005 05:41:48 -0000 1.12
+++ Encodings.java 7 Apr 2005 06:02:51 -0000 1.13
@@ -68,8 +68,10 @@
SUN_CHAR2BYTE_CONVERTER_METHOD = findCharToByteConverterMethod();
private static Method findCharToByteConverterMethod() {
+ Method method = null;
try
{
+ method = (Method)
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
try {
@@ -87,9 +89,10 @@
{
System.err.println(
"Warning: Could not get charToByteConverterClass!");
+ method = null;
}
- return null;
+ return method;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]