RFR: 6766844: ByteArrayInputStream#read with a byte array of length 0 not consistent with InputStream when at EOF [v5]
Brian Burkhalter
bpb at openjdk.java.net
Wed Jun 30 23:05:05 UTC 2021
On Mon, 28 Jun 2021 17:48:37 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
>> 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.
>
> Brian Burkhalter has updated the pull request incrementally with two additional commits since the last revision:
>
> - 6766844: Move API note of read(byte[],int,int) to normative text
> - 6766844: Change "equivalent" to "overridden"
This PR has been superseded by the JDK 17 PR [189](https://github.com/openjdk/jdk17/pull/189).
-------------
PR: https://git.openjdk.java.net/jdk/pull/4591
More information about the core-libs-dev
mailing list