[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
On Wed, 30 Jun 2021 23:00:24 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> 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.
This PR supersedes PR [4591](https://github.com/openjdk/jdk/pull/4591).
-------------
PR: https://git.openjdk.java.net/jdk17/pull/189
More information about the core-libs-dev
mailing list