RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v10]
Kevin Walls
kevinw at openjdk.org
Fri Jun 14 12:47:13 UTC 2024
On Fri, 14 Jun 2024 12:04:06 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> Kevin Walls has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Separate SM allowed and not allowed cases
>
> src/java.management/share/classes/com/sun/jmx/remote/internal/ServerNotifForwarder.java line 353:
>
>> 351: } else {
>> 352: return Subject.getSubject(AccessController.getContext());
>> 353: }
>
> `Subject.current()` should work for both cases. See the impl of it.
ok!
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19624#discussion_r1639766973
More information about the core-libs-dev
mailing list