8075824: Add default[Read|Write]Object to java.util.Date
Reviewed-by: alanb, rriggs
--- 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();
}