-
Sub-task
-
Resolution: Unresolved
-
P4
-
26
-
generic
-
generic
`java.text.NumberFormat` now allows implementations to parse the minus sign in negative patterns leniently when in lenient mode (`NumberFormat.isStrict()` returns `false`). The concrete classes, `DecimalFormat` and `CompactNumberFormat` both use CLDR’s `parseLenient` data to support lenient parsing of minus signs, and this behavior is enabled by default. For example, if the text to parse uses the `MINUS SIGN` (U+2212) as the negative prefix, it is now correctly recognized as a minus sign:
```
jshell> NumberFormat.getNumberInstance().parse("\u22123")
$183 ==> -3
```
```
jshell> NumberFormat.getNumberInstance().parse("\u22123")
$183 ==> -3
```