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

PropertyEditor.getJavaInitializationString() generates illegal Java code for some property editors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b10
    • CPU:
      x86
    • OS:
      windows_xp
    • Verification:
      Verified

      Description

      Some property editors do not support null values:
      ByteEditor, ColorEditor, FloatEditor, FontEditor, LongEditor, ShortEditor
      BooleanEditor.getJavaInitializationString() throws NPE.
      ByteEditor.getJavaInitializationString() returns "((byte)null)".
      ShortEditor.getJavaInitializationString() returns "((short)null)".
      LongEditor.getJavaInitializationString() returns "nullL".
      FloatEditor.getJavaInitializationString() returns "nullF".
      ColorEditor.getJavaInitializationString() returns "new java.awt.Color()"
      FontEditor.getJavaInitializationString() throws NPE.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: