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

Remove the jmx.invoke.getters compatibility property

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • 25
    • None
    • core-svc
    • None


      The System Property "jmx.invoke.getters" was added in JDK-4949203 to optionally be compatible with a time before JDK-6, when calling invoke on getters and setters was permitted.

      From https://docs.oracle.com/javase/6/docs/technotes/guides/jmx/enhancements.html
      "getters and setters in a Standard MBean cannot be invoked through MBeanServer.invoke"


      JDK-4949203 states:
      "this property is a feature of the Reference Implementation to ease the transition for code that may have incorrectly relied on being able to invoke getters before. So it should appear in the Release Notes of the RI, not in the spec. Having such a property is a violation of compatibility rules so it will be phased out in the future."


      This was a long time ago. This compatibility convenience flag should be removed.

      Removing old obscure properties helps simplify the platform.

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

              Created:
              Updated: