You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by Steve Vaughan <sn...@yahoo.com> on 2003/11/13 18:03:31 UTC

Another problem with ObjectNode and serialization

There was one last problem with ObjectNode and serialization,  the path field 
(an instance of UriPath) should be marked transient.  The constructor for 
ObjectNode always sets this field to null, and the field is alread generated 
when needed (with a call to getPath()).

cvs diff -u src/share/org/apache/slide/structure/ObjectNode.java
Index: src/share/org/apache/slide/structure/ObjectNode.java
===================================================================
RCS file: 
/home/cvspublic/jakarta-slide/src/share/org/apache/slide/structure/ObjectNode.java,v
retrieving revision 1.20
diff -u -r1.20 ObjectNode.java
--- src/share/org/apache/slide/structure/ObjectNode.java        12 Nov 2003 
08:36:40 -0000      1.20
+++ src/share/org/apache/slide/structure/ObjectNode.java        13 Nov 2003 
16:42:41 -0000
@@ -124,7 +124,7 @@

     private Vector childrenCache = null;

-    private UriPath path = null;
+    private transient UriPath path = null;

     /**
      * Default constructor.


---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org