Details
-
Bug
-
Resolution: Fixed
-
P3
-
6
-
b71
-
generic
-
generic
-
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.
[...]
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.