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

Derivation of immutableInfo field for StandardMBean is incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-svc
    • None
    • b43
    • generic
    • generic

      The immutableInfo field in a StandardMBean is supposed to be "true" if and only if the MBeanInfo is guaranteed never to change. The way this is determined is to ensure than none of the methods getMBeanInfo, getCachedMBeanInfo, or cacheMBeanInfo is overridden. However, the code to check this is incorrect. It calls getMethods() on the class to be checked, then loops over the methods to see whether one of the above methods is present. But getMethods() only returns public methods, whereas the getCachedMBeanInfo and cacheMBeanInfo methods are protected.
      ###@###.### 2005-06-09 10:12:34 GMT

            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: