<i18n dev> RFR: 8363972: Loose matching of dash/minusSign in number parsing [v7]

Naoto Sato naoto at openjdk.org
Tue Aug 5 22:56:03 UTC 2025


On Tue, 5 Aug 2025 19:41:26 GMT, Roger Riggs <rriggs at openjdk.org> wrote:

>> The way I interpreted this was that Naoto was not trying to imply that the default behavior of the class enabled loose matching of lenient minus parsing signs. Rather, he was describing that the JDK reference implementation of DecimalFormat and CompactNumberFormat support the ability for loose matching of minus sign patterns (and other JDKs need not implement this particular LMDL behavior).
>> 
>> If I interpreted that wrong and his intentions were the former, then I agree it is best to just mention leniency.
>
> The spec for enabling lenient matching in parsing of minus signs belongs with the other comments about leniency in the `parse()` method. Its behavior depends on the settings in the isStrict and setStrict methods.
> It looks a bit out of context in the class javadoc.

Moved the description into each concrete classes' "Negative Subpattern" section, dropping the implNote and adding the link to the leniency section in `NumberFormat`.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/26580#discussion_r2255492346


More information about the i18n-dev mailing list