JDK-6538876 : api/java_beans/PropertyEditorSupport/descriptions.html#EditorSupport problem with null value
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.beans
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-03-26
  • Updated: 2017-05-16
  • Resolved: 2009-11-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 Other
7 b20Fixed OpenJDK6Fixed
Related Reports
Relates :  
Relates :  
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

Comments
EVALUATION PropertyEditorSupport should not change the specification defined in PropertyEditor.
31-07-2007

EVALUATION Methods getAsText() and setAsText() should be implemented according the existing JavaDoc.
17-04-2007