提交 b2fd2379 编写于 作者: I igerasim

8076401: Serialize OIS data

Reviewed-by: alanb, chegar
上级 c00de39f
...@@ -1887,10 +1887,9 @@ public class ObjectInputStream ...@@ -1887,10 +1887,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;
if (oldContext != null) if (oldContext != null)
oldContext.check(); oldContext.check();
...@@ -1924,6 +1923,7 @@ public class ObjectInputStream ...@@ -1924,6 +1923,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.
先完成此消息的编辑!
想要评论请 注册