提交 cf29b742 编写于 作者: I igerasim

8076401: Serialize OIS data

Reviewed-by: alanb, chegar
上级 54b78e87
...@@ -1883,10 +1883,9 @@ public class ObjectInputStream ...@@ -1883,10 +1883,9 @@ public class ObjectInputStream
ObjectStreamClass slotDesc = slots[i].desc; ObjectStreamClass slotDesc = slots[i].desc;
if (slots[i].hasData) { if (slots[i].hasData) {
if (obj != null && if (obj == null || handles.lookupException(passHandle) != null) {
slotDesc.hasReadObjectMethod() && defaultReadFields(null, slotDesc); // skip field values
handles.lookupException(passHandle) == null) } else if (slotDesc.hasReadObjectMethod()) {
{
SerialCallbackContext oldContext = curContext; SerialCallbackContext oldContext = curContext;
try { try {
...@@ -1917,6 +1916,7 @@ public class ObjectInputStream ...@@ -1917,6 +1916,7 @@ public class ObjectInputStream
} else { } else {
defaultReadFields(obj, slotDesc); defaultReadFields(obj, slotDesc);
} }
if (slotDesc.hasWriteObjectData()) { if (slotDesc.hasWriteObjectData()) {
skipCustomData(); skipCustomData();
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册