This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [Patch] java.io.BufferedInputStream.skip(long)...
Tom Tromey wrote:
>>>>>>"David" == David Daney <ddaney@avtrex.com> writes:
>
>
> David> OK to commit?
>
> Ok, thanks.
>
>
I am omitting the testsuite change as I added it to mauve.
Committed thusly:
2004-11-17 David Daney <ddaney@avtrex.com>
* java/io/BufferedInputStream.java (skip): Return zero on EOF.
Index: java/io/BufferedInputStream.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/io/BufferedInputStream.java,v
retrieving revision 1.9
diff -c -p -r1.9 BufferedInputStream.java
*** java/io/BufferedInputStream.java 18 Oct 2004 13:40:04 -0000 1.9
--- java/io/BufferedInputStream.java 17 Nov 2004 23:50:03 -0000
*************** public class BufferedInputStream extends
*** 321,327 ****
if (n < origN)
break;
else
! return -1; // No bytes were read before EOF.
int numread = (int) Math.min((long) (count - pos), n);
pos += numread;
--- 321,327 ----
if (n < origN)
break;
else
! return 0; // No bytes were read before EOF.
int numread = (int) Math.min((long) (count - pos), n);
pos += numread;
David Daney.