JDK-8344944 : Remove SecurityManager Permission-related metadata fields in com.sun.management.DiagnosticCommandMBean
  • Type: CSR
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Priority: P4
  • Status: Draft
  • Resolution: Unresolved
  • Fix Versions: 24
  • Submitted: 2024-11-25
  • Updated: 2024-11-25
Related Reports
CSR :  
Description
Summary
-------

Remove the SecurityManager Permission-related metadata fields in the Descriptor available in `com.sun.management.DiagnosticCommandMBean`.


Problem
-------

Removal of the SecurityManager makes redundant the Permissions stored in HotSpot DiagnosticCommands.  These permission details have been available via JMX in the Descriptor available from `com.sun.management.DiagnosticCommandMBean`.

The Descriptor fields dcmd.permissionClass, dcmd.permissionName, and dcmd.permissionAction have no meaning after SecurityManager removal, and should be removed.

Solution
--------

Remove these metadata fields.

Specification
-------------

Github PR: https://github.com/openjdk/jdk/pull/22315

This will affect the table of Descriptor fields, in the API docs for jdk.management / com.sun.management.DiagnosticCommandMBean





Comments
For "Interface Kind" I put "Other" for now. This affects metadata contained in a Descriptor, which is returned by a Java API. If that is considered a "Java API change" then we can update.
25-11-2024