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

JMX subclass permission check redundant with strong encapsulation

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: