-
Bug
-
Resolution: Fixed
-
P2
-
7
-
b10
-
b20
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2152962 | OpenJDK6 | Sergey Malenkov | P3 | Resolved | Fixed | b02 |
JCK: JCK-runtime-6a b08
J2SE: FAIL - JDK7 b10, PASS JDK 7 b09, JDK 6u1 b06
Platform[s]: FAIL - ALL
switch/Mode: FAIL - default
Accordint to documentation, java.beans.PropertyEditorSupport.PropertyEditorSupport.getAsText() "Returns "null" is the value can't be expressed as a string."
Since JDK 7 b10 it returns null value if was initialized by null.
Either documentation should be made clearer and this CR reassigned to tck_j2se or this is product problem which should be fixed.
Two affected JCK tests:
api/java_beans/PropertyEditorSupport/descriptions.html#EditorSupport[PropertyEditorSupport0008]
api/java_beans/PropertyEditorSupport/descriptions.html#EditorSupport[PropertyEditorSupport0009]
First test tries to convert null value into string and expects "null" at the output. Second one tries to initialize PropertyEditorSupport with "null" string and get "null" value at the output again. In both cases tests receive null value instead of "null" string
J2SE: FAIL - JDK7 b10, PASS JDK 7 b09, JDK 6u1 b06
Platform[s]: FAIL - ALL
switch/Mode: FAIL - default
Accordint to documentation, java.beans.PropertyEditorSupport.PropertyEditorSupport.getAsText() "Returns "null" is the value can't be expressed as a string."
Since JDK 7 b10 it returns null value if was initialized by null.
Either documentation should be made clearer and this CR reassigned to tck_j2se or this is product problem which should be fixed.
Two affected JCK tests:
api/java_beans/PropertyEditorSupport/descriptions.html#EditorSupport[PropertyEditorSupport0008]
api/java_beans/PropertyEditorSupport/descriptions.html#EditorSupport[PropertyEditorSupport0009]
First test tries to convert null value into string and expects "null" at the output. Second one tries to initialize PropertyEditorSupport with "null" string and get "null" value at the output again. In both cases tests receive null value instead of "null" string
- backported by
-
JDK-2152962 api/java_beans/PropertyEditorSupport/descriptions.html#EditorSupport problem with null value
-
- Resolved
-
- relates to
-
JDK-6703513 DOC: Spec for PropertyEditor should contain example of usage
-
- Open
-
-
JDK-4222827 RFE: Support getAsText and setAsText in all default editors
-
- Closed
-