On Tue, 22 Nov 2022 16:26:30 GMT, Weijun Wang <[email protected]> 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