On Wed, 30 Jun 2021 23:00:24 GMT, Brian Burkhalter <b...@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 pull request has now been integrated. Changeset: f46a9172 Author: Brian Burkhalter <b...@openjdk.org> URL: https://git.openjdk.java.net/jdk17/commit/f46a9172700a3e2d63cb772e604120bb6f60d4b0 Stats: 18 lines in 2 files changed: 12 ins; 1 del; 5 mod 6766844: ByteArrayInputStream#read with a byte array of length 0 not consistent with InputStream when at EOF Reviewed-by: naoto, lancea, joehw ------------- PR: https://git.openjdk.java.net/jdk17/pull/189