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

Remove the jmx.extend.open.types compatibility property

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 25
    • core-svc
    • None
    • behavioral
    • minimal
    • Removal of a historic undocumented System Property, for providing compatibility with code from before JDK 6.
    • System or security property
    • Implementation

      Summary

      Remove the System Property "jmx.extend.open.types", which was historically provided to aid compatibility, in JDK 6.

      Problem

      Classes should not override javax.management.openmbean.OpenType.getClassName(), and this was made illegal (caused an Exception) in JDK6. A System Property jmx.extend.open.types was introduced to allow such an override, for compatibility reasons.

      This was not documented but was mentioned in the Exception message.

      This compatibility convenience flag should be removed.

      Solution

      Remove the code that reads the Property "jmx.extend.open.types", the conditions related to it, and update tests.

      New behaviour will be the same as current behaviour with the property unset.

      Specification

      No specification change. Property is not documented in the JDK.

      Github PR for reference: https://github.com/openjdk/jdk/pull/23151

            kevinw Kevin Walls
            kevinw Kevin Walls
            Alex Menkov, Serguei Spitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: