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

JMX subclass permission check redundant with strong encapsulation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 19
    • None
    • core-svc

      JMX uses RuntimePermission to check (if Security Manager is present) that code is permitted to subclass certain classes.

      This SecurityManager check should be removed as unnecessary now we have strong encapsulation with modules.

      AgentProvider, PlatformMBeanProvider and PlatformMBeanFinder use a check for RuntimePermission with a name: class.getName() + ".subclass".

      Strong encapsulation ensures that no user-defined class can implement those abstract classes.

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

              Created:
              Updated:
              Resolved: