[jdk21u-dev] RFR: 8333456: CompactNumberFormat integer parsing fails when string has no suffix

Paul Hohensee phh at openjdk.org
Tue Nov 18 16:46:18 UTC 2025


On Thu, 13 Nov 2025 18:52:51 GMT, Roland Mesde <duke at openjdk.org> wrote:

> Backporting JDK-8333456: CompactNumberFormat integer parsing fails when string has no suffix. Adds logic to check to make sure position does not exceed the string length before deciding to check for a decimal symbol.
> 
> Ran GHA Sanity Checks (passed) and related test (passed).

LenientParseTest.java was brought in as part of [JDK-8327640](https://bugs.openjdk.org/browse/JDK-8327640), which was a large patch and required a CSR, thus including it in this PR is unlikely to be approved by the maintainers. I would drop this PR.

If you do want to get this fix done, I'd file a new JBS issue against 21u and write a new test for just this fix.

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

PR Review: https://git.openjdk.org/jdk21u-dev/pull/2468#pullrequestreview-3478755233


More information about the jdk-updates-dev mailing list