commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kohs...@apache.org
Subject svn commit: r297754 - /jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/Stack.java
Date Thu, 06 Oct 2005 00:39:27 GMT
Author: kohsuke
Date: Wed Oct  5 17:39:21 2005
New Revision: 297754

URL: http://svn.apache.org/viewcvs?rev=297754&view=rev
Log:
added the serialization code for the runnable.
since this is an incompatible change, changed serialVersionUID.

Modified:
    jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/Stack.java

Modified: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/Stack.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/Stack.java?rev=297754&r1=297753&r2=297754&view=diff
==============================================================================
--- jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/Stack.java
(original)
+++ jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/Stack.java
Wed Oct  5 17:39:21 2005
@@ -34,7 +34,7 @@
 
     private final static Log log = LogFactory.getLog(Stack.class);
 
-    private static final long serialVersionUID = 1L;
+    private static final long serialVersionUID = 2L;
     
     private int[] istack;
     private float[] fstack;
@@ -332,6 +332,8 @@
         for( int i=0; i<rTop; i++ ) {
             s.writeObject(rstack[i]);
         }
+
+        s.writeObject(runnable);
     }
 
     private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
{
@@ -370,6 +372,8 @@
         for( int i=0; i<rTop; i++ ) {
             rstack[i] = s.readObject();
         }
+
+        runnable = (Runnable)s.readObject();
     }
 
 }



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


Mime
View raw message