Derivation of immutableInfo field for StandardMBean is incorrect

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 6
    • Affects Version/s: 6
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: