On Tue, 5 Aug 2025 18:36:35 GMT, Justin Lu <j...@openjdk.org> wrote:

>> However,  "The JDK Reference Implementation" is a very specific and separate 
>> deliverable of the JCP.
>> That's why I suggest just stating that lenient is enabled without trying to 
>> attach it to an artifact.
>> As at line 421.
>
> 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.

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

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

Reply via email to