8076401: Serialize OIS data

Reviewed-by: alanb, igerasim
This commit is contained in:
Chris Hegarty 2015-04-17 15:28:44 +01:00
parent 490c3dee9c
commit 4799f0adcd

View File

@ -1906,10 +1906,9 @@ public class ObjectInputStream
ObjectStreamClass slotDesc = slots[i].desc;
if (slots[i].hasData) {
if (obj != null &&
slotDesc.hasReadObjectMethod() &&
handles.lookupException(passHandle) == null)
{
if (obj == null || handles.lookupException(passHandle) != null) {
defaultReadFields(null, slotDesc); // skip field values
} else if (slotDesc.hasReadObjectMethod()) {
SerialCallbackContext oldContext = curContext;
try {
@ -1946,6 +1945,7 @@ public class ObjectInputStream
defaultSetFieldValues(obj, slotDesc, vals);
}
}
if (slotDesc.hasWriteObjectData()) {
skipCustomData();
} else {