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

MBeanServer.queryNames calls getMBeanInfo on every resultant MBean

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • core-svc
    • b61
    • generic
    • generic

      MBeanServer.queryNames returns a Set<ObjectName>. However, it calls getMBeanInfo on every MBean whose name is included in that Set, in order to discover the MBean's classname. This is currently necessary when there is a SecurityManager, because the returned names must be filtered against those that the caller has the permission to see, and the permission check includes the classname. But when there is no SecurityManager, there is no need to get the classname, so no need to call getMBeanInfo.

            lmalvent Luis-Miguel Alventosa (Inactive)
            emcmanus Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: