8075824: Add default[Read|Write]Object to java.util.Date

Reviewed-by: alanb, rriggs
This commit is contained in:
Chris Hegarty 2015-03-24 14:48:11 +00:00
parent 2b63b5d1d7
commit 82dd135b5f

View File

@ -1317,6 +1317,7 @@ public class Date
private void writeObject(ObjectOutputStream s)
throws IOException
{
s.defaultWriteObject();
s.writeLong(getTimeImpl());
}
@ -1326,6 +1327,7 @@ public class Date
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException
{
s.defaultReadObject();
fastTime = s.readLong();
}