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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 5.0
    • 1.2.1
    • core-svc
    • b32
    • generic
    • 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

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

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: