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

MBeanOperationInfo assumes that serial form of signature array will never be null.

XMLWordPrintable

    • b71
    • generic
    • generic

      When creating an MBeanOperationInfo, the signature parameter, if null, is replace
      by an impty MBeanParameterInfo[] array.

      As a result, in our implementation, the final private signature field which is
      serialized can *never* be null.

      However, the fact that null is not a valid value is not explicitly documented in
      the serial form.

      An independent implementation could therefore choose to serialize a null value
      instead of an empty array.
      Our implementation should be made more robust and accept such cases.

      With our current implementation, the JCK test javasoft.sqe.tests.api.javax.management.openmbean.OpenMBeanOperationInfoSupport.serial.InputTests serial2003 will fail if the deserialized signature field is null.

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: