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

Could explicitly allow MBeanServer.invoke and .createMBean null args meaning empty arrays

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • tbd
    • 6
    • core-svc

      The JMX spec does not say what happens if the params or signature arguments to MBeanServer.createMBean or MBeanServer.invoke are null. In practice, the JDK treats a null parameter as equivalent to an empty array for createMBean and for invoke on a Standard MBean, but not for invoke on a Dynamic MBean. (The Dynamic MBean must include the logic to convert null into an empty array itself if it wants it.) The spec should say that these parameters can be null and that null is equivalent to an empty array. The implementation should make this replacement in the invoke method before calling DynamicMBean.invoke.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: