[jdk17] RFR: 6766844: ByteArrayInputStream#read with a byte array of length 0 not consistent with InputStream when at EOF
Brian Burkhalter
bpb at openjdk.java.net
Wed Jun 30 23:07:20 UTC 2021
Modify the specification of `java.io.ByteArrayInputStream#read(byte[],int,int)` to indicate that `-1` is returned instead of `0` when the stream is at its end and the third parameter, `len`, is zero.
-------------
Commit messages:
- 6766844: ByteArrayInputStream#read with a byte array of length 0 not consistent with InputStream when at EOF
Changes: https://git.openjdk.java.net/jdk17/pull/189/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk17&pr=189&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-6766844
Stats: 18 lines in 2 files changed: 12 ins; 1 del; 5 mod
Patch: https://git.openjdk.java.net/jdk17/pull/189.diff
Fetch: git fetch https://git.openjdk.java.net/jdk17 pull/189/head:pull/189
PR: https://git.openjdk.java.net/jdk17/pull/189
More information about the core-libs-dev
mailing list