Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6538876

api/java_beans/PropertyEditorSupport/descriptions.html#EditorSupport problem with null value

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b10
    • Introduced In Version:
      7
    • Resolved In Build:
      b20
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        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

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                malenkov Sergey Malenkov (Inactive)
                Reporter:
                pastepan Pavel Stepanov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: