8075824: Add default[Read|Write]Object to java.util.Date
authorchegar
Tue, 24 Mar 2015 14:48:11 +0000
changeset 29614 c95b4a5f89d6
parent 29613 da0ff5cf6e75
child 29615 b0057b63b4e7
child 29735 fa2eceb2988e
8075824: Add default[Read|Write]Object to java.util.Date Reviewed-by: alanb, rriggs
jdk/src/java.base/share/classes/java/util/Date.java
--- a/jdk/src/java.base/share/classes/java/util/Date.java	Tue Mar 24 03:46:57 2015 -0400
+++ b/jdk/src/java.base/share/classes/java/util/Date.java	Tue Mar 24 14:48:11 2015 +0000
@@ -1317,6 +1317,7 @@
     private void writeObject(ObjectOutputStream s)
          throws IOException
     {
+        s.defaultWriteObject();
         s.writeLong(getTimeImpl());
     }
 
@@ -1326,6 +1327,7 @@
     private void readObject(ObjectInputStream s)
          throws IOException, ClassNotFoundException
     {
+        s.defaultReadObject();
         fastTime = s.readLong();
     }