JDK-6176837 : TabularDataSupport.entrySet() should prevent calls to Map.Entry.setValue on returned set elements
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 6
  • Priority: P5
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2004-10-11
  • Updated: 2010-07-29
  • Resolved: 2008-09-17
Related Reports
Relates :  
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