[jdk21u-dev] RFR: 8371652: Double.parseDouble with large strings fails [v2]
Lei Zhu
duke at openjdk.org
Thu Nov 27 16:16:03 UTC 2025
On Thu, 27 Nov 2025 10:09:34 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:
>> Lei Zhu has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8371652: Double.parseDouble with large strings fails
>
> test/jdk/java/lang/Double/ParseLargeStrings.java line 27:
>
>> 25: * @test
>> 26: * @bug 8371652
>> 27: * @summary Double.parseDouble with large strings should return Double Infinity
>
> Large strings can return _any_ `double`, not only infinity.
> Think of 1 billions `' '` (or `'0'`) followed by a `'1'`, which returns `1.0`.
> Or 1 billion `'9'` followed by `e-10000000000000000000`, which returns `0.0`.
> And so on.
Thank you for pointing this out.
-------------
PR Review Comment: https://git.openjdk.org/jdk21u-dev/pull/2488#discussion_r2569424462
More information about the jdk-updates-dev
mailing list