diff --git a/src/share/classes/java/lang/Integer.java b/src/share/classes/java/lang/Integer.java index 3496d039c1c31bf93708a509bb7133bf6648abea..af575f0b54d3920498be519d20d729823d66d9dc 100644 --- a/src/share/classes/java/lang/Integer.java +++ b/src/share/classes/java/lang/Integer.java @@ -772,7 +772,7 @@ public final class Integer extends Number implements Comparable { int i = parseInt(integerCacheHighPropValue); i = Math.max(i, 127); // Maximum array size is Integer.MAX_VALUE - h = Math.min(i, Integer.MAX_VALUE - (-low)); + h = Math.min(i, Integer.MAX_VALUE - (-low) -1); } high = h;