Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8318915

Enhance checks in BigDecimal.toPlainString()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 22
    • None
    • core-libs
    • None
    • b24
    • Verified

        For some instances of `BigDecimal`, invoking `toPlainString()` might wrongly result in a `NegativeArraySizeException` when it should, in fact, throw an `OutOfMemoryError` to indicate that the resulting `String` would be too large, that is, consisting of more than `Integer.MAX_VALUE` characters.

              rgiulietti Raffaello Giulietti
              rgiulietti Raffaello Giulietti
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: