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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.1
    • Fix Version/s: 5.0
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b32
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: