JDK-6320104 : Add ability to set to UNKNOWN the OperationInfo impact of an Open MBean and an MXBean
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
When you create a standard MBean, the operation impact is by default UNKNOWN; but if you create an MXBean with the same interface, the same operation will have an ACTION_INFO impact.
It would be clearer to have symmetry here, by using UNKNOWN.
There are two ways to fix this. Either allow OpenMBeanOperationInfoSupport to accept UNKNOWN as a possible impact value, which seems logical; or change the MXBean infrastructure so that it never generates an OpenMBeanOperationInfo but always a plain MBeanOperationInfo. If the latter then we should probably just drop the creation of any OpenMBean*Info in MXBeans. The main disadvantage of that is that it reduces the information available to Tiger clients who can't access the OpenType information that is available in the Descriptor of MBean*Info on Mustang.
I think it would be better to allow UNKNOWN as a value for OpenMBeanOperationInfoSupport. So long as we're not deprecating the OpenMBean*Info classes, the omission of UNKNOWN seems gratuitous.