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

FormatStringConverter should convert only full Strings

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u40
    • None
    • javafx
    • None

      Currently, FormatStringConverter converts also string that can be only partially converted to the value.

      E.g.

      FormatStringConverter fsc = new FormatStringConverter(NumberFormat.getInstance());
      System.out.println(fsc.fromString("1.0abcd"));

      this code works but should throw Exception.

            msladecek Martin Sládeček
            msladecek Martin Sládeček
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: