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) @@ -1884,6 +1901,11 @@ fail("Should throw NPE"); //$NON-NLS-1$ } catch (NullPointerException e) { } + try { + ByteBuffer.wrap(new byte[10], Integer.MAX_VALUE, 2); + fail("Should throw IndexOutOfBoundsException"); //$NON-NLS-1$ + } catch (IndexOutOfBoundsException e) { + } } private void loadTestData1(byte array[], int offset, int length) {