8076401: Serialize OIS data
Reviewed-by: alanb, igerasim
This commit is contained in:
parent
490c3dee9c
commit
4799f0adcd
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user