JDK-6236765 : ModelMBeanConstructorInfo says persistPolicy & currencyTimeLimit invalid, but doesn't check
  • Type: Bug
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-03-07
  • Updated: 2017-05-16
  • Resolved: 2006-04-14
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 b81Fixed
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 To avoid breaking existing code, the spec has been changed to say that these fields are meaningless but not invalid.
28-06-2006

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
07-03-2005