Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8292295

M-Let should be disabled by default

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Withdrawn
    • Icon: P3 P3
    • 20
    • core-svc
    • None
    • behavioral
    • minimal
    • No usage of M-Lets is expected.
    • System or security property
    • Implementation

      Summary

      Disable M-Lets by default, and require a System Property com.sun.jmx.enableMLetRegistration be set to true, in order for them to be usable.

      Problem

      M-Lets are a feature with no sign of usage, and a JEP is in process (JDK-8285724) for their deprecation and removal.

      It would be possible for the JEP to proceed and a user of M-Lets to be unaware of the impending deprecation and removal. Requiring some action ensures that any existing user is aware, as they need to make a simple change to continue using the feature.

      Solution

      Refusal to register an M-Let without a new System Property being set.

      Specification

      javax.management.loading.MLet will throw UnsupportedOperationException from its preRegister method, unless the System Property com.sun.jmx.enableMLetRegistration is set to "true".

      Draft PR: https://github.com/openjdk/jdk/pull/9852

            kevinw Kevin Walls
            kevinw Kevin Walls
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: