|
Quick Lists
|
|
Bug ID:
|
4967755
|
|
Votes
|
0
|
|
Synopsis
|
ModelMBeanAttributeInfo constructor modifies its Descriptor argument
|
|
Category
|
jmx:classes
|
|
Reported Against
|
tiger-beta
|
|
Release Fixed
|
7(b17)
|
|
State
|
10-Fix Delivered,
bug
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
6252592
,
4967751
|
|
Submit Date
|
12-DEC-2003
|
|
Description
|
The ModelMBeanAttributeInfo and ModelMBeanConstructorInfo constructors both respect the spec to the letter: if the passed-in Descriptor does not contain the field displayName then it is added (as a side-effect of the private method isValid). Then the Descriptor is cloned. It would obviously be much cleaner to clone the Descriptor first, then add displayName if it is missing. In particular this would allow the caller to pass in a read-only Descriptor.
xxxxx@xxxxx 2003-12-12
|
|
Work Around
|
N/A
|
|
Evaluation
|
Straightforward to fix. Note that an incorrect TCK test relies on the current behaviour for ModelMBeanAttributeInfo (but not for ModelMBeanConstructorInfo). See 4967751.
xxxxx@xxxxx 2003-12-12
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |