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

FormatStringConverter should convert only full Strings

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: