[Patch] java.io.BufferedInputStream.skip(long)...
David Daney
ddaney@avtrex.com
Wed Nov 17 18:35:00 GMT 2004
Michael Koch wrote:
> 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 ?
Perhaps it would, I will look into it.
David Daney.
More information about the Java-patches
mailing list