DataOutputStream (write (byte[], int, int)): Update "written" correctly.

* java/io/DataOutputStream (write (byte[], int, int)): Update
	"written" correctly. Fix from the ORP team.

From-SVN: r48050
This commit is contained in:
Bryce McKinlay 2001-12-16 00:14:57 +00:00 committed by Bryce McKinlay
parent f79a65c087
commit 1e2bba3565
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-12-16 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* java/io/DataOutputStream (write (byte[], int, int)): Update
"written" correctly. Fix from the ORP team.
2001-12-15 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* include/jvm.h (_Jv_VTable::idx_to_offset): New method.

View File

@ -48,7 +48,7 @@ public class DataOutputStream extends FilterOutputStream implements DataOutput
throws IOException, NullPointerException, IndexOutOfBoundsException
{
out.write(b, off, len);
written += len - off;
written += len;
}
public final void writeBoolean (boolean v) throws IOException