RFR: 8297276: Remove thread text from Subject.current
Xue-Lei Andrew Fan
xuelei at openjdk.org
Tue Nov 22 17:08:28 UTC 2022
On Tue, 22 Nov 2022 16:26:30 GMT, Weijun Wang <weijun at openjdk.org> wrote:
> With the introduction of Virtual Threads, the current subject is no longer guaranteed to be inherited in a new thread. Remove this requirement until we find another way to implement `Subject::current`.
src/java.base/share/classes/javax/security/auth/Subject.java line 329:
> 327: * subject is {@code null} before the first call of {@code callAs()}.
> 328: * <p>
> 329: * When a new thread is created, its current subject is the same as
what about change from"when" to "if", in case some implementation still create a new thread?
-------------
PR: https://git.openjdk.org/jdk/pull/11292
More information about the security-dev
mailing list