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

Method "int isX()" in Standard MBean neither an attribute nor operation

    XMLWordPrintable

    Details

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

      Description

      A Standard MBean with this interface:

      public interface ThingMBean {
          int isSurprising();
      }

      should define an operation called "isSurprising" with zero args. But the introspection logic to detect getters called "boolean isX()" interferes with this, and ends up defining neither an attribute nor an operation in the MBeanInfo for the MBean.

        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: