RFR: 8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation
Kevin Walls
kevinw at openjdk.org
Wed May 15 21:41:04 UTC 2024
On Wed, 15 May 2024 21:20:25 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:
> ...Is there any way to run jconsole in a way that would result in it passing a non-empty delegationSubjects, resulting in this issue still reproducing?
I don't think there is, JConsole has a hard null in this call. Also I don't see in JConsole any calls of getMBeanServerConnection with a Subject being passed, that's the main gateway method to use the removed feature.
If there was a way to use Subject Delegation with JConsole (or with anything else), and you try to attach to a jdk-23, then that will fail with the UnsupportedOperationException and that's what we want as the feature is gone.
Realistically it's a feature with no known usage as discussed in the deprecation and removal changes.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19253#issuecomment-2113498480
More information about the serviceability-dev
mailing list