mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-28 03:43:21 +00:00
8024306: Enhance Subject consistency
Also reviewed by Alexander Fomin Reviewed-by: mullan, ahgross
This commit is contained in:
parent
0961a179cf
commit
312b920fb9
@ -964,6 +964,10 @@ public final class Subject implements java.io.Serializable {
|
||||
|
||||
s.defaultReadObject();
|
||||
|
||||
// Rewrap the principals into a SecureSet
|
||||
principals = Collections.synchronizedSet(new SecureSet<Principal>
|
||||
(this, PRINCIPAL_SET, principals));
|
||||
|
||||
// The Credential {@code Set} is not serialized, but we do not
|
||||
// want the default deserialization routine to set it to null.
|
||||
this.pubCredentials = Collections.synchronizedSet
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user