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.
E.g.
FormatStringConverter fsc = new FormatStringConverter(NumberFormat.getInstance());
System.out.println(fsc.fromString("1.0abcd"));
this code works but should throw Exception.
- relates to
-
JDK-8097928 Add Formatted TextField control
-
- Resolved
-