Integrated: 8318915: Enhance checks in BigDecimal.toPlainString()

Raffaello Giulietti rgiulietti at openjdk.org
Wed Nov 8 19:08:13 UTC 2023


On Wed, 1 Nov 2023 17:40:04 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.

This pull request has now been integrated.

Changeset: a6785e4d
Author:    Raffaello Giulietti <rgiulietti at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/a6785e4d633908596ddb6de6d2eeab1c9ebdf2c3
Stats:     63 lines in 2 files changed: 43 ins; 6 del; 14 mod

8318915: Enhance checks in BigDecimal.toPlainString()

Reviewed-by: rriggs, bpb

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

PR: https://git.openjdk.org/jdk/pull/16457


More information about the core-libs-dev mailing list