Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6282502
Votes 0
Synopsis Define string constants for predefined Descriptor field names
Category jmx:classes
Reported Against
Release Fixed mustang(b45)
State 10-Fix Delivered, request for enhancement
Priority: 3-Medium
Related Bugs
Submit Date 08-JUN-2005
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  customer  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.
  xxxxx@xxxxx   2005-06-08 17:13:41 GMT
Work Around
N/A
Evaluation
Straightforward change, important for Mustang usability.
  xxxxx@xxxxx   2005-06-08 17:13:42 GMT
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang