[Patch] java.io.BufferedInputStream.skip(long)...

David Daney ddaney@avtrex.com
Tue Nov 16 22:18:00 GMT 2004


InputStream.skip(long) should (i.e. is required to) return the number of
bytes skipped.

BufferedInputStream was returning -1 on EOF in violation of the specification.

This patch corrects the problem by returning 0 (zero) when skip() is called
at EOF.

Tested on i686-pc-linux-gnu with make check in libjava with no regressions.

OK to commit?

David Daney
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: bis.d
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20041116/8e1e7ec1/attachment.ksh>


More information about the Java-patches mailing list