RFR: 8363972: Loose matching of dash/minusSign in number parsing [v4]
Naoto Sato
naoto at openjdk.org
Thu Jul 31 22:30:35 UTC 2025
> Enabling lenient minus sign matching when parsing numbers. In some locales, e.g. Finnish, the default minus sign is the Unicode "Minus Sign" (U+2212), which is not the "Hyphen Minus" (U+002D) that users type in from keyboard. Thus the parsing of user input numbers may fail. This change utilizes CLDR's `parseLenient` element for minus signs and loosely matches them with the hyphen-minus so that user input numbers can parse. As this is a behavioral change, a corresponding CSR has been drafted.
Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
flipped again, which was correct
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/26580/files
- new: https://git.openjdk.org/jdk/pull/26580/files/516403e8..38f3286f
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=26580&range=03
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=26580&range=02-03
Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/26580.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/26580/head:pull/26580
PR: https://git.openjdk.org/jdk/pull/26580
More information about the core-libs-dev
mailing list