RFR: JDK-8230744 Several classes throw OutOfMemoryError without message

Martin Buchholz martinrb at google.com
Mon Jun 1 20:40:40 UTC 2020


On Mon, Jun 1, 2020 at 1:37 PM Brent Christian
<brent.christian at oracle.com> wrote:

> "Unable to allocate buffer" seems vague in the context of an OOME.  If
> the problem is trying to create a too-large array, maybe something like,
> "Buffer for \\Q...\\E sequence would exceed maximum array size".

A generic message that does not necessarily expose the use of an
internal array seems best, e.g.

"... exceeds implementation limits"


More information about the core-libs-dev mailing list