MBean server allows getAttribute("X") even when "getX()" is an operation

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 5.0
    • Affects Version/s: 1.2.1
    • Component/s: core-svc
    • b32
    • generic
    • generic

      The MBean server recognizes that certain methods in Standard MBeans define operations, not attributes. For example, "void getLost()" defines an operation because the return type for an attribute cannot be void. "int get()" defines an operation because an attribute name cannot be empty. Nevertheless, it allows you to get the values of the "Lost" and "" attributes using MBeanServer.getAttribute.

            Assignee:
            Eamonn McManus
            Reporter:
            Eamonn McManus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: