From: Ito Kazumitsu Date: Thu, 17 Feb 2005 19:51:25 +0000 (+0000) Subject: FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7801fed43de9df48ec81760a5fb20f54436d165f;p=gcc.git FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer forward. 2005-02-17 Ito Kazumitsu * gnu/java/nio/channels/FileChannelImpl.java (write(ByteBuffer)): Move the position of the source buffer forward. From-SVN: r95184 --- diff --git a/libjava/ChangeLog b/libjava/ChangeLog index 49a0b6e4f29..cb0e02463e2 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2005-02-17 Ito Kazumitsu + + * gnu/java/nio/channels/FileChannelImpl.java (write(ByteBuffer)): + Move the position of the source buffer forward. + 2005-02-17 Tom Tromey * java/lang/Class.h (_Jv_GetMethodString): Updated declaration. diff --git a/libjava/gnu/java/nio/channels/FileChannelImpl.java b/libjava/gnu/java/nio/channels/FileChannelImpl.java index 678e10f2349..887d1dcc396 100644 --- a/libjava/gnu/java/nio/channels/FileChannelImpl.java +++ b/libjava/gnu/java/nio/channels/FileChannelImpl.java @@ -1,5 +1,5 @@ /* FileChannelImpl.java -- - Copyright (C) 2002, 2004 Free Software Foundation, Inc. + Copyright (C) 2002, 2004, 2005 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -192,6 +192,7 @@ public final class FileChannelImpl extends FileChannel { byte[] buffer = src.array(); write(buffer, src.arrayOffset() + src.position(), len); + src.position(src.position() + len); } else {