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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 5.0
    • core-svc
    • b32
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: