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

Brian Burkhalter bpb at openjdk.java.net
Wed May 11 20:57:19 UTC 2022


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.

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

Commit messages:
 - 8286200: SequenceInputStream::read(b, off, 0) returns -1 at EOF

Changes: https://git.openjdk.java.net/jdk/pull/8664/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8664&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8286200
  Stats: 5 lines in 1 file changed: 1 ins; 0 del; 4 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


More information about the core-libs-dev mailing list