diff --git a/classpath/java/io/RandomAccessFile.java b/classpath/java/io/RandomAccessFile.java index a2f40bce76..f5a3602bf1 100644 --- a/classpath/java/io/RandomAccessFile.java +++ b/classpath/java/io/RandomAccessFile.java @@ -56,6 +56,8 @@ public class RandomAccessFile { throw new ArrayIndexOutOfBoundsException(); copy(peer, position, buffer, offset, length); + + position += length; } private static native void copy(long peer, long position, byte[] buffer,