United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6236765 ModelMBeanConstructorInfo says persistPolicy & currencyTimeLimit invalid, but doesn't check
JDK-6236765 : ModelMBeanConstructorInfo says persistPolicy & currencyTimeLimit invalid, but doesn't check

Details
Type:
Bug
Submit Date:
2005-03-07
Status:
Resolved
Updated Date:
2010-07-29
Project Name:
JDK
Resolved Date:
2006-04-14
Component:
core-svc
OS:
generic
Sub-Component:
javax.management
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports

Sub Tasks

Description
javax.management.modelmbean.ModelMBeanConstructorInfo says, with respect to the optional Descriptor supplied at construction time:
"The persistPolicy and currencyTimeLimit fields are not valid for the constructor."  However, the implementation does not check this, even though it does do other validity checks on the Descriptor.
###@###.### 2005-03-07 09:46:20 GMT

                                    

Comments
EVALUATION

This could be fixed either by changing the implementation so it does check those values, or by changing the spec so that it no longer says they are invalid.  This bug was originally reported against the MX4J implementation, which did make the validity checks: apparently they caused some existing software to fail there.  So the safest choice would seem to be to change the spec.  For example, it could say:
"The persistPolicy and currencyTimeLimit fields are meaningless for constructors, but are not considered invalid."
###@###.### 2005-03-07 09:46:20 GMT
                                     
2005-03-07
EVALUATION

To avoid breaking existing code, the spec has been changed to say that these fields are meaningless but not invalid.
                                     
2006-06-28



Hardware and Software, Engineered to Work Together