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

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

XMLWordPrintable

    • b10
    • 7
    • b20
    • generic
    • generic
    • Verified

        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

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: