Index: C:/harmony/trunk_0427/modules/nio/src/main/java/java/nio/LongBuffer.java =================================================================== --- C:/harmony/trunk_0427/modules/nio/src/main/java/java/nio/LongBuffer.java (revision 419837) +++ C:/harmony/trunk_0427/modules/nio/src/main/java/java/nio/LongBuffer.java (working copy) @@ -88,7 +88,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(); } @@ -306,7 +306,7 @@ * remaining() */ public LongBuffer get(long[] 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(); } @@ -470,7 +470,7 @@ * If no changes may be made to the contents of this buffer */ public LongBuffer put(long[] 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(); }