Integrated: 8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation
Kevin Walls
kevinw at openjdk.org
Fri May 24 19:34:07 UTC 2024
On Wed, 15 May 2024 16:59:59 GMT, Kevin Walls <kevinw at openjdk.org> wrote:
> Running JConsole from a previous JDK, and attaching to jdk-23 (after [JDK-8326666](https://bugs.openjdk.org/browse/JDK-8326666): Remove the Java Management Extension (JMX) Subject Delegation feature), the MBean tab is blank.
>
> In javax/management/remote/rmi/RMIConnectionImpl.java:
> addNotificationListener rejects a non-null delegationSubjects array, but older JDKs will send such an array. It could accept the array, and only reject/throw if it contains a non-null Subject (i.e. if an attempt to use subject delegation is really happening).
>
> Manually testing JConsole, the MBean tab is fully populated and usable.
This pull request has now been integrated.
Changeset: 253508b0
Author: Kevin Walls <kevinw at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/253508b03a3de4dab00ed7fb57e9f345d8aed1a4
Stats: 19 lines in 2 files changed: 8 ins; 3 del; 8 mod
8332303: Better JMX interoperability with older JDKs, after removing Subject Delegation
Reviewed-by: dfuchs, cjplummer
-------------
PR: https://git.openjdk.org/jdk/pull/19253
More information about the serviceability-dev
mailing list