Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8210583 Base64.Encoder incorrectly throws NegativeArraySizeException
  3. JDK-8217706

Release Note: Base64.Encoder and Base64.Decoder Methods Can Throw OutOfMemoryError

    XMLWordPrintable

Details

    • Verified

    Description

      The behavior of `Base64.Encoder.encode` and `Base64.Decoder.decode` methods have been changed for large arrays. The methods previously threw an unspecified exception, such as, `NegativeArraySizeException`. The new behavior throws an `OutOfMemoryError` exception if the `encode` and `decode` methods fail to allocate the output array/buffer or memory.

      Attachments

        Activity

          People

            nishjain Nishit Jain
            nishjain Nishit Jain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: