JDK-8096208 : FormatStringConverter should convert only full Strings
  • Type: Bug
  • Component: javafx
  • Sub-Component: base
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-08-12
  • Updated: 2015-06-12
  • Resolved: 2014-08-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u40Fixed
Related Reports
Relates :  
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.
Comments
Changeset: http://hg.openjdk.java.net/openjfx/8u-dev/rt/rev/6f16716706c3
13-08-2014

http://cr.openjdk.java.net/~msladecek/rt-14000/webrev.05/modules/base/src/main/java/javafx/util/converter/FormatStringConverter.java.udiff.html
12-08-2014