RFR: 8233760: Result of BigDecimal.toString throws overflow exception on new BigDecimal(str) [v2]
Raffaello Giulietti
duke at openjdk.java.net
Fri May 27 23:07:34 UTC 2022
On Fri, 27 May 2022 20:16:12 GMT, Joe Darcy <darcy at openjdk.org> wrote:
>> Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8233760: Result of BigDecimal.toString throws overflow exception on new BigDecimal(str)
>
> test/jdk/java/math/BigDecimal/StringConstructor.java line 69:
>
>> 67: constructWithError("0.01e"+Integer.MIN_VALUE);
>> 68: constructWithError("1e"+((long)Integer.MIN_VALUE-1));
>> 69:
>
> Please add some test cases to demonstrate that the round-tripping that previous did not work is functional after the fix.
Tests were added in the new commit.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8905
More information about the core-libs-dev
mailing list