JDK-5046781 : Spec should say role field in ModelMBeanOperationInfo descriptor is optional
  • Type: Bug
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-05-13
  • Updated: 2006-01-18
  • Resolved: 2006-01-18
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.

To download the current JDK release, click here.
JDK 6
6 betaFixed
Related Reports
Relates :  
Description
The "role" field in the descriptor in a ModelMBeanOperationInfo is considered optional by the Reference Implementation and by the TCK.  We might also deduce that it is supposed to be optional from the fact that a default descriptor can conjure up an appropriate value for it.  However, p99 of the JMX spec v1.2 says "It must have a descriptorType with the value operation and a role of operation, getter, or setter."  It should delete the words starting with "and", and add a separate sentence saying, "If the role field is present, it must have the value operation, getter, or setter."

Comments
PUBLIC COMMENTS The "role" field in ModelMBeanOperationInfo is de facto optional but the spec implies that it is mandatory.
01-09-2004

EVALUATION Could add this to errata for 1.2. In any case, should incorporate it in next spec version. ###@###.### 2004-05-13 ======================================= I have added he below to both the CTS 1.4.1 & CTS 1.4.0 exclude lists. # # Bug id: 5046781 # com/sun/ts/tests/jmx/api/javax/management/modelMBeans/RequiredModelMBeanTest/Req uiredModelMBeanTest.java#RequiredModelMBeanTest0009_from_standalone com/sun/ts/tests/jmx/api/javax/management/modelMBeans/RequiredModelMBeanTest/Req uiredModelMBeanTest.java#RequiredModelMBeanTest0010_from_standalone com/sun/ts/tests/jmx/api/javax/management/modelMBeans/RequiredModelMBeanTest/Req uiredModelMBeanTest.java#RequiredModelMBeanTest0011_from_standalone com/sun/ts/tests/jmx/api/javax/management/modelMBeans/RequiredModelMBeanTest/Req uiredModelMBeanTest.java#RequiredModelMBeanTest0016_from_standalone com/sun/ts/tests/jmx/api/javax/management/modelMBeans/RequiredModelMBeanTest/Req uiredModelMBeanTest.java#RequiredModelMBeanTest0017_from_standalone ###@###.### 2004-05-14
14-05-2004