diff --git a/classpath/java/nio/ByteBuffer.java b/classpath/java/nio/ByteBuffer.java index 1b72d70b2a..4e2018ef77 100644 --- a/classpath/java/nio/ByteBuffer.java +++ b/classpath/java/nio/ByteBuffer.java @@ -89,7 +89,7 @@ public class ByteBuffer { } public ByteBuffer put(byte[] arr, int offset, int len) { - System.arraycopy(arr, offset, array, arrayOffset, len); + System.arraycopy(arr, offset, array, arrayOffset+position, len); position += len; return this; }