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
Fri Jun 25 00:13:21 UTC 2021
Modify `java.io.ByteArrayInputStream` methods `read(byte[])` and `read(byte[],int,int)` to return zero per the `InputStream` specification when the byte array actual or specified length 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/jdk/pull/4591/files
Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=4591&range=00
Issue: https://bugs.openjdk.java.net/browse/JDK-6766844
Stats: 16 lines in 2 files changed: 11 ins; 1 del; 4 mod
Patch: https://git.openjdk.java.net/jdk/pull/4591.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/4591/head:pull/4591
PR: https://git.openjdk.java.net/jdk/pull/4591
More information about the core-libs-dev
mailing list