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: 6538876
Votes 0
Synopsis api/java_beans/PropertyEditorSupport/descriptions.html#EditorSupport problem with null value
Category java:classes_beans
Reported Against b10
Release Fixed 7(b20), 6-open(b02) (Bug ID:2152962)
State 11-Closed, Verified, bug
Priority: 2-High
Related Bugs 4222827 , 6576062 , 6703513
Submit Date 26-MAR-2007
Description
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
Posted Date : 2007-03-26 17:42:14.0
Work Around
N/A
Evaluation
Methods getAsText() and setAsText() should be implemented according the existing JavaDoc.
Posted Date : 2007-04-17 18:15:42.0

PropertyEditorSupport should not change the specification defined in PropertyEditor.
Posted Date : 2007-07-31 16:06:01.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang