提交 8b5fd0b3 编写于 作者: W weijun

8015731: Subject java.security.auth.subject to improvements

Reviewed-by: skoivu, mullan
上级 c7514743
......@@ -1297,8 +1297,14 @@ public final class Subject implements java.io.Serializable {
{
ObjectInputStream.GetField fields = ois.readFields();
subject = (Subject) fields.get("this$0", null);
elements = (LinkedList<E>) fields.get("elements", null);
which = fields.get("which", 0);
LinkedList<E> tmp = (LinkedList<E>) fields.get("elements", null);
if (tmp.getClass() != LinkedList.class) {
elements = new LinkedList<E>(tmp);
} else {
elements = tmp;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册