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

Javadoc error in permissions required by getDomains().

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 5.0
    • 1.2.0
    • core-svc
    • None
    • tiger_integ
    • sparc
    • solaris_2.5.1
    • Not verified

      The javadoc in the javax.management.MBeanServer class says:

      "Additionally, for each domain d in the returned array, if the caller's permissions do not imply
      MBeanPermission(null, null, new ObjectName("d:x=x"), "queryMBeans"), the domain is eliminated
      from the array."

      And it should say:

      "Additionally, for each domain d in the returned array, if the caller's permissions do not imply
      MBeanPermission(null, null, new ObjectName("d:x=x"), "getDomains"), the domain is eliminated
      from the array."

      The fix to carry out is just to replace "queryMBeans" by "getDomains".

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: