JDK-5100192 : Specify that TabularData[Support].keySet() returns Set>
  • Type: Bug
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-09-10
  • Updated: 2005-08-10
  • Resolved: 2005-08-10
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 b47Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
javax.management.openmbean says for TabularData.keySet() that it returns "a set view of the keys".  This is somewhat unclear, but we can interpret it to mean that each element of the set is a tuple containing the index items for one row of the table.  However, the form of this tuple is not specified.

TabularDataSupport.keySet() goes further and says "Each key contained in this set is an umodifiable List".  It also says that the set is backed by the table and supports removal -- removing an entry from the set removes the corresponding row in the table.

At a minimum, TabularData should also say that the set contains List values.  The method TabularData.keySet() is unusable as specified because some other implementation of TabularData might decide to make the entries of the set be Object[].  The simplest way to clear up the specification is to define the return type of keySet() to be Set<List<Object>> in both TabularData and TabularDataSupport.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
11-09-2004

PUBLIC COMMENTS .
11-09-2004

EVALUATION Documentation fix. Should not require code changes beyond those already planned for generification of the API. Can be fixed in Mustang. ###@###.### 2004-09-10
10-09-2004