JDK-5090566 : TabularDataSupport.put(key,value) doesn't respect Map.put(key,value)
  • Type: Bug
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 6
  • Priority: P5
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2004-08-23
  • Updated: 2017-05-19
  • Resolved: 2005-04-25
Related Reports
Relates :  
javax.management.openmbean.TabularDataSupport implements Map, but its put(Object,Object) method is specified and implemented to return the value that was put (which is not very interesting) rather than the value it replaced as required by the contract of Map.

EVALUATION Requires a minor spec change, which can be done for Mustang. Very unlikely to break existing code because Open MBeans are not very widely used and because the value currently returned is uninteresting since it is the same as one of the parameters. ###@###.### 2004-08-23 This method doesn't allow you to replace an already-existing value so this change is not worth the small compatibility risk that it entails. ###@###.### 2005-04-25 12:21:00 GMT

CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang

PUBLIC COMMENTS TabularDataSupport.put(key,value) returns value rather than previous value of get(key).