OpenMBeanInfo: unable to cast an array of OpenMBeanXXXInfoSupport from MBeanXXXInfo

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 6
    • Component/s: core-svc
    • None

      OpenMBeanInfo getAttributes and getOperations methods are returning respectively MBeanAttributeInfo[] and MBeanOperationInfo[] arrays.

      Those arrays can not be directly cast to OpenMBeanAttributeInfoSupport[] and OpenMBeanOperationInfoSupport[] arrays like this:

      OpenMBeanAttributeInfoSupport[] attrs = (OpenMBeanAttributeInfoSupport[]) openMBeanInfo.getAttributes();

      a ClassCastException is raised.
      ###@###.### 2005-04-22 08:21:49 GMT

            Assignee:
            Luis-Miguel Alventosa (Inactive)
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: