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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.2.1
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: