Index: C:/harmony/trunk_0427/modules/nio/src/main/java/java/nio/IntBuffer.java =================================================================== --- C:/harmony/trunk_0427/modules/nio/src/main/java/java/nio/IntBuffer.java (revision 419837) +++ C:/harmony/trunk_0427/modules/nio/src/main/java/java/nio/IntBuffer.java (working copy) @@ -87,7 +87,7 @@ if (array == null) { throw new NullPointerException(); } - if (start < 0 || len < 0 || len + start > array.length) { + if (start < 0 || len < 0 || (long)len + (long)start > (long)array.length) { throw new IndexOutOfBoundsException(); } @@ -305,7 +305,7 @@ * remaining() */ public IntBuffer get(int[] dest, int off, int len) { - if (off < 0 || len < 0 || len + off > dest.length) { + if (off < 0 || len < 0 || (long)len + (long)off > (long)dest.length) { throw new IndexOutOfBoundsException(); } if (len > remaining()) { @@ -462,7 +462,7 @@ * If no changes may be made to the contents of this buffer */ public IntBuffer put(int[] src, int off, int len) { - if (off < 0 || len < 0 || len + off > src.length) { + if (off < 0 || len < 0 || (long)len + (long)off > (long)src.length) { throw new IndexOutOfBoundsException(); }