United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6267824 Clarify order the returned array is sorted with when calling Descriptor.getFieldValues(null)
JDK-6267824 : Clarify order the returned array is sorted with when calling Descriptor.getFieldValues(null)

Details
Type:
Bug
Submit Date:
2005-05-10
Status:
Closed
Updated Date:
2010-07-29
Project Name:
JDK
Resolved Date:
2005-12-21
Component:
core-svc
OS:
generic
Sub-Component:
javax.management
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports

Sub Tasks

Description
Descriptor.getFieldValues() says returned values are ordered the same way as fieldNames is. But in case fieldNames is null, nothing is said about the order of returned values.
The order might be specified for all cases.
###@###.### 2005-05-10 09:15:40 GMT

                                    

Comments
SUGGESTED FIX

The order values should be returned with when parameter is null may be in sync with the order of names as returned by Descriptor.getFieldNames().
###@###.### 2005-05-10 09:15:41 GMT
                                     
2005-05-10
EVALUATION

To this sentence:
"If the array is null then all values will be returned"
add the phrase:
"as if the parameter were the array returned by {@link #getFieldNames()}."
###@###.### 2005-06-07 14:58:04 GMT
                                     
2005-05-10



Hardware and Software, Engineered to Work Together