From 3b1c769d2b6ba67fe47cdf583ed186944bb595a9 Mon Sep 17 00:00:00 2001 From: JET Date: Mon, 24 Oct 2011 09:01:17 -0600 Subject: [PATCH] Fixed RandomAccessFile to update position after reads. --- classpath/java/io/RandomAccessFile.java | 2 ++ 1 file changed, 2 insertions(+) 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,