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

2022-05-16 Thread Brian Burkhalter
On Thu, 12 May 2022 19:00:05 GMT, Roger Riggs  wrote:

> 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.

I put it at the beginning as that is the ordering but I see  your point.

-

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


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

2022-05-12 Thread Roger Riggs
On Thu, 12 May 2022 16:01:50 GMT, Brian Burkhalter  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


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

2022-05-12 Thread Raffaello Giulietti
On Thu, 12 May 2022 16:01:50 GMT, Brian Burkhalter  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

_(not a reviewer)_
Looks good

-

Marked as reviewed by rgiulie...@github.com (no known OpenJDK username).

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


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

2022-05-12 Thread Brian Burkhalter
> 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

-

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/8664/files
  - new: https://git.openjdk.java.net/jdk/pull/8664/files/7582dbff..111ea3e2

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk=8664=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk=8664=01-02

  Stats: 2 lines in 1 file changed: 1 ins; 0 del; 1 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8664.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8664/head:pull/8664

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