RFR: 8333344: JMX attaching of Subject does not work when security manager not allowed [v10]
Kevin Walls
kevinw at openjdk.org
Fri Jun 14 15:21:14 UTC 2024
On Fri, 14 Jun 2024 14:51:53 GMT, Weijun Wang <weijun at openjdk.org> wrote:
>> It needs to recognise and throw RuntimeException so that a SecurityException isn't wrapped in a PrivilegedActionException (which gets caught by those blocks of code which call extractException(pe) and look at what Exception it contains).
>>
>> (test/jdk/javax/management/remote/mandatory/notif/NotificationAccessControllerTest.java tests this)
>>
>> I can add a check to make sure PrivilgedActionException doesn't get wrapped. Daniel I think mentioned this also.
>
> I still don't understand how a SecurityException could be wrapped into a PAE without these lines.
I misunderstood the comment, yes I think I can remove this block now.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/19624#discussion_r1639983304
More information about the serviceability-dev
mailing list