-
Sub-task
-
Resolution: Delivered
-
P4
-
24
`DecimalFormat`, when the format expects a suffix, now parses correctly when the parse value contains a decimal symbol and `isParseIntegerOnly()` would return `true`. Previously, parsing would fail for such cases and the correct value never returned.
For example, in the following snippet, 5 will now be returned by the `parse(String)` invocation, instead of a `ParseException` thrown.
```
NumberFormat fmt = NumberFormat.getPercentInstance(Locale.US);
fmt.setParseIntegerOnly(true);
fmt.parse("500.55%");
```
For example, in the following snippet, 5 will now be returned by the `parse(String)` invocation, instead of a `ParseException` thrown.
```
NumberFormat fmt = NumberFormat.getPercentInstance(Locale.US);
fmt.setParseIntegerOnly(true);
fmt.parse("500.55%");
```