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

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P5
    • Resolution: Won't Fix
    • Affects Version/s: 6
    • Fix Version/s: tbd
    • Component/s: core-svc
    • Labels:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: