JDK-6282502 : Define string constants for predefined Descriptor field names
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-06-08
  • Updated: 2017-05-16
  • Resolved: 2005-07-22
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 b45Fixed
Description
Now that Descriptors are part of the core JMX API, and that certain Descriptor fields are automatically set by Standard MBeans and MXBeans, it would be good for there to be string constants for the names of these fields.  This avoids problems caused by typos in the field names, makes it easy to find the right names through code completion, and simplifies searches through code for field use.

The proposal is that only those field names that are meaningful to (understood by, or set by) Standard MBeans, MXBeans, or Open MBeans define constants.  Other field names (e.g. "units") that have conventional meanings are not included.  Otherwise there would be a very large number of field names, and the list would tend to grow considerably between releases.

The field names are these:
defaultValue
immutableInfo
interfaceClassName
legalValues
maxValue
minValue
mxbean
openType
originalType

The constant names are derived mechanically from the field names, using the transformation exemplified by:
public static final String DEFAULT_VALUE_FIELD = "defaultValue";

The constants appear in the class javax.management.JMX.
###@###.### 2005-06-08 17:13:41 GMT

Comments
EVALUATION Straightforward change, important for Mustang usability. ###@###.### 2005-06-08 17:13:42 GMT
08-06-2005