United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-5046781 Spec should say role field in ModelMBeanOperationInfo descriptor is optional
JDK-5046781 : Spec should say role field in ModelMBeanOperationInfo descriptor is optional

Details
Type:
Bug
Submit Date:
2004-05-13
Status:
Resolved
Updated Date:
2006-01-18
Project Name:
JDK
Resolved Date:
2006-01-18
Component:
core-svc
OS:
generic
Sub-Component:
javax.management
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:

Related Reports
Relates:

Sub Tasks

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
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
                                     
2004-05-14
PUBLIC COMMENTS

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



Hardware and Software, Engineered to Work Together