Parsing in NumberFormat is by default lenient. There exists no options for strict parsing. Generally, parsing is utilized to verify input and is ideally strict for most use cases.
Introducing a setLenient() method should allow for strict parsing of localized numbers in a compatibility friendly manner.
Introducing a setLenient() method should allow for strict parsing of localized numbers in a compatibility friendly manner.
- csr for
-
JDK-8327703 Allow NumberFormat strict parsing
- Closed
- relates to
-
JDK-7049000 [Fmt-De] NumberFormat able to parse wrongly formatted input
- Closed