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

DescriptorKey is not ignored as specified when used within a Dynamic MBean

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b71
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      As of Mustang b57, the javax.management.DescriptorKey says:
      [...]
      An annotation such as @Units can be applied to:

          * a Standard MBean or MXBean interface;
          * a method in such an interface;
          * a parameter of a method in a Standard MBean or MXBean interface when that method is an operation (not a getter or setter for an attribute);
          * a public constructor in the class that implements a Standard MBean or MXBean;
          * a parameter in such a constructor.

      Other uses of the annotation are ignored.
      [...]

      The implementation does not behave as specified : if you use such annotation on the constructor of a Dynamic MBean, it is NOT ignored; the Descriptor for MBeanConstructorInfo will contain what comes from the annotation, it is not ignored.

        Attachments

          Activity

            People

            Assignee:
            emcmanus Eamonn McManus
            Reporter:
            yjoan Yves Joan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: