Could we please get this in before the next release. 

I would really like to get to use a non-mangled Xerces in my app.

Thanks,
Scott Sanders

-----Original Message-----
From: Scott Sanders 
Sent: Thursday, June 27, 2002 10:01 PM
To: '[EMAIL PROTECTED]'
Subject: [PATCH] Java Serialization of DOM Part II


Thanks for the 2.0.2 release everyone!

Since it includes my serialization patch, I figured I would try it out,
and whammo!, new problem.

A patch to fix this is attached.  Basically looks like a new class that
was not implementing Serializable, and also contained a field that is
not Serializable, which I made transient.

Cheers,
Scott Sanders 

Perfection is achieved, not when there is nothing more to add, but when
there is nothing left to take away. - Antoine de Saint-Exupery

C:\dev\xml-xerces\java\src\org>cvs -q diff -u
Index: apache/xerces/util/DOMErrorHandlerWrapper.java
===================================================================
RCS file: 
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/util/DOMErrorHandlerWrapper.java,v

retrieving revision 1.3
diff -u -r1.3 DOMErrorHandlerWrapper.java
--- apache/xerces/util/DOMErrorHandlerWrapper.java      11 Jun 2002 17:41:25 -0000     
 1.3
+++ apache/xerces/util/DOMErrorHandlerWrapper.java      28 Jun 2002 05:01:25 -0000
@@ -67,6 +67,7 @@
 import org.apache.xerces.dom.DOMErrorImpl;

 import java.io.PrintWriter;
+import java.io.Serializable;

 /**
  * This class handles DOM errors .
@@ -84,7 +85,7 @@
 //          I think we can avoid this indirection if we modify XMLErrorReporter. --el

 public class DOMErrorHandlerWrapper
-    implements XMLErrorHandler, DOMErrorHandler {
+    implements XMLErrorHandler, DOMErrorHandler, Serializable {


   // It keeps the reference of DOMErrorHandler of application
@@ -94,7 +95,7 @@
      boolean eStatus = true ;

   // Print writer
-     protected PrintWriter fOut;
+     protected transient PrintWriter fOut = new PrintWriter(System.err);


   //
@@ -104,7 +105,6 @@
   // Default constructor /

    public DOMErrorHandlerWrapper() {
-        fOut = new PrintWriter(System.err);
    }


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to