[Patch] java.io.BufferedInputStream.skip(long)...
Michael Koch
konqueror@gmx.de
Wed Nov 17 07:13:00 GMT 2004
Am Dienstag, 16. November 2004 23:14 schrieb David Daney:
> 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?
Wouldn't it be better to put the testcase into Mauve instead of
keeping it secret in libgcj ?
Michael
--
Homepage: http://www.worldforge.org/
More information about the Java-patches
mailing list