RFR: 8286200: SequenceInputStream::read(b, off, 0) returns -1 at EOF [v3]

Roger Riggs rriggs at openjdk.java.net
Thu May 12 19:03:58 UTC 2022


On Thu, 12 May 2022 16:01:50 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Modify the specification of `SequenceInputStream.read(byte[],int,int)` to indicate that `-1` is returned at the EOF of the last stream even if `len` is zero.
>
> Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8286200: Change @throws NPE clause of read(byte[],int,int) to better match specification verbiage

In the throws clauses, I think I would have put the additional conditional at the end of the sentence since the existing throws text corresponds to the exception.
But the logic is correct as is.

-------------

Marked as reviewed by rriggs (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/8664


More information about the core-libs-dev mailing list