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

FormatStringConverter should convert only full Strings

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:
      None
    • Subcomponent:

      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: