-
Enhancement
-
Resolution: Fixed
-
P4
-
5.0
-
b07
-
x86
-
windows_2000
-
Verified
A DESCRIPTION OF THE REQUEST :
The PropertyEditorManager only supports a one to one relation for classes. Now for an Enum there could easily be a generic PropertyEditor, that returns the proper enum for a given string representing the name.
JUSTIFICATION :
Otherwise Enum's can not be used in JavaBean properties.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
After the PropertyManager unsuccessfully searched the searchPath it should check if the targetType is an Enum. If it is it should return the EnumPropertyEdit, which it initializes with the targetType (thus the generic class nows which actual Enum to take)
The Text given (setAsText) to the EnumPropertyEditor should be Enum.name().
ACTUAL -
Not there
###@###.### 2005-1-20 22:03:47 GMT
The PropertyEditorManager only supports a one to one relation for classes. Now for an Enum there could easily be a generic PropertyEditor, that returns the proper enum for a given string representing the name.
JUSTIFICATION :
Otherwise Enum's can not be used in JavaBean properties.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
After the PropertyManager unsuccessfully searched the searchPath it should check if the targetType is an Enum. If it is it should return the EnumPropertyEdit, which it initializes with the targetType (thus the generic class nows which actual Enum to take)
The Text given (setAsText) to the EnumPropertyEditor should be Enum.name().
ACTUAL -
Not there
###@###.### 2005-1-20 22:03:47 GMT
- relates to
-
JDK-4043157 RFE: generic PropertyEditor for Enumeration properties
- Open
-
JDK-6582164 JavaBeans tests should be open source
- Resolved