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