United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6176837 : TabularDataSupport.entrySet() should prevent calls to Map.Entry.setValue on returned set elements

Details
Type:
Enhancement
Submit Date:
2004-10-11
Status:
Closed
Updated Date:
2010-07-29
Project Name:
JDK
Resolved Date:
2008-09-17
Component:
core-svc
OS:
generic
Sub-Component:
javax.management
CPU:
generic
Priority:
P5
Resolution:
Won't Fix
Affected Versions:
6
Fixed Versions:

Related Reports
Relates:

Sub Tasks

Description
javax.management.openmbean.TabularDataSupport.entrySet() contains the following text:
"IMPORTANT NOTICE: Do not use the SetValue method of Map.Entry elements contained in the returned collection view. Doing so would corrupt the index to row mappings contained in this TabularDataSupport instance."
Rather than stating this, the specification should say that attempting to call setValue will produce an exception, and the implementation should arrange for this to be the case.
###@###.### 10/11/04 10:07 GMT

                                    

Comments
EVALUATION

Not a real problem so the effort would not be justified.
                                     
2008-09-17
EVALUATION

This would be cleaner, but is not completely trivial to implement and implies some additional runtime overhead.
###@###.### 10/11/04 10:07 GMT
                                     
2004-10-11



Hardware and Software, Engineered to Work Together