Bug ID: JDK-8246725 Provide MAX_ARRAY_SIZE publicly
The limit is currently defined internally by `jdk.internal.util.ArraysSupport.MAX_ARRAY_LENGTH`.The REAL fix for this problem is to fix the JVM so that it can allocate arrays of length Integer.MAX_VALUE. From time to time I hear rumors that this might be possible.