public static void ensureArraySizeOkay ( long tSize , String attributeTo ) { if ( tSize >= Integer . MAX_VALUE ) throw new RuntimeException ( memoryTooMuchData + " " + MessageFormat . format ( memoryArraySize , "" + tSize , "" + Integer . MAX_VALUE ) + ( attributeTo == null || attributeTo . length ( ) == 0 ? "" : " (" + attributeTo + ")" ) ) ; }
Even if JavaBits is 64 the limit on an array size is Integer . MAX_VALUE .