RFR: 8318915: Enhance checks in BigDecimal.toPlainString() [v2]

Roger Riggs rriggs at openjdk.org
Tue Nov 7 19:53:46 UTC 2023


On Tue, 7 Nov 2023 19:17:03 GMT, Raffaello Giulietti <rgiulietti at openjdk.org> wrote:

>> Prevent a `NegativeArraySizeException` in `BigDecimal.toPlainString()`, throwing `OutOfMemoryError` instead to indicate that the resulting `String` would be too large.
>
> Raffaello Giulietti has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Using repeat() instead of loop.

Looks good.  Thanks

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

Marked as reviewed by rriggs (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/16457#pullrequestreview-1718594344


More information about the core-libs-dev mailing list