RFR: 6766844: ByteArrayInputStream#read with a byte array of length 0 not consistent with InputStream when at EOF [v2]
Brian Burkhalter
bpb at openjdk.java.net
Fri Jun 25 15:25:00 UTC 2021
On Fri, 25 Jun 2021 01:39:21 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 one additional commit since the last revision:
>
> 6766844: Add bug ID to test
I had the same misgivings after creating this PR and thought that a CSR would be in order.
-------------
PR: https://git.openjdk.java.net/jdk/pull/4591
More information about the core-libs-dev
mailing list