Attached is the first part of the serialization giving me fits.
I am working on a simple test case, but have not yet got it to fail. I
need to continue to work on it so that it is a valid test case.
Thanks,
Scott Sanders
Index: build.xml
===================================================================
RCS file: /home/cvspublic/xml-xerces/java/build.xml,v
retrieving revision 1.78
diff -u -r1.78 build.xml
--- build.xml 10 Apr 2002 18:46:34 -0000 1.78
+++ build.xml 23 Apr 2002 20:58:54 -0000
@@ -622,6 +622,14 @@
classname="dom.DTest"
failOnError="yes">
</java>
+ <echo message="Running dom.serializtion.Test ..." />
+ <java fork="yes"
+ classpath="${build.dir}/classes"
+ classname="dom.serialization.Test"
+ failOnError="yes">
+ <arg value="${data.dir}/personal.xml"/>
+ <arg value="${data.dir}/document.ser"/>
+ </java>
</target>
<!-- =================================================================== -->
Index: src/org/apache/xerces/dom/DocumentImpl.java
===================================================================
RCS file:
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/dom/DocumentImpl.java,v
retrieving revision 1.70
diff -u -r1.70 DocumentImpl.java
--- src/org/apache/xerces/dom/DocumentImpl.java 12 Apr 2002 01:52:07 -0000 1.70
+++ src/org/apache/xerces/dom/DocumentImpl.java 23 Apr 2002 20:58:55 -0000
@@ -59,6 +59,7 @@
import java.util.Hashtable;
import java.util.Vector;
+import java.io.Serializable;
import org.w3c.dom.Attr;
import org.w3c.dom.DOMException;
@@ -520,7 +521,7 @@
* is probably short in most cases, it might not be worth spending
* the space. ***** REVISIT WHEN WE HAVE MORE EXPERIENCE.
*/
- class LEntry
+ class LEntry implements Serializable
{
String type;
EventListener listener;
@@ -861,7 +862,7 @@
* (two values, the Attr node affected (if any) and its previous
* string value. Simple struct, no methods.
*/
- class EnclosingAttr
+ class EnclosingAttr implements Serializable
{
AttrImpl node;
String oldvalue;
Index: src/org/apache/xerces/dom/NodeListCache.java
===================================================================
RCS file:
/home/cvspublic/xml-xerces/java/src/org/apache/xerces/dom/NodeListCache.java,v
retrieving revision 1.2
diff -u -r1.2 NodeListCache.java
--- src/org/apache/xerces/dom/NodeListCache.java 29 Jan 2002 01:15:07 -0000
1.2
+++ src/org/apache/xerces/dom/NodeListCache.java 23 Apr 2002 20:58:55 -0000
@@ -58,12 +58,14 @@
package org.apache.xerces.dom;
+import java.io.Serializable;
+
/**
* This class is used, via a pool managed on CoreDocumentImpl, in ParentNode to
* improve performance of the NodeList accessors, getLength() and item(i).
* @author Arnaud Le Hors, IBM
*/
-class NodeListCache {
+class NodeListCache implements Serializable {
/** Cached node list length. */
int fLength = -1;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]