Index: C:/harmony/trunk_0427/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/ByteBufferTest.java =================================================================== --- C:/harmony/trunk_0427/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/ByteBufferTest.java (revision 419837) +++ C:/harmony/trunk_0427/modules/nio/src/test/java/common/org/apache/harmony/tests/java/nio/ByteBufferTest.java (working copy) @@ -567,6 +568,14 @@ } catch (IndexOutOfBoundsException e) { // expected } + + try { + buf.put(array, 2, Integer.MAX_VALUE); + fail("Should throw Exception"); //$NON-NLS-1$ + } catch (IndexOutOfBoundsException e) { + // expected + } + assertEquals(buf.position(), 0); loadTestData2(array, 0, array.length);