RFR: 6766844: ByteArrayInputStream#read with a byte array of length 0 not consistent with InputStream when at EOF [v3]

Brian Burkhalter bpb at openjdk.java.net
Fri Jun 25 20:34:30 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.

Brian Burkhalter has updated the pull request incrementally with one additional commit since the last revision:

  6766844: Add an @apiNote instead of changing impl

-------------

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/4591/files
  - new: https://git.openjdk.java.net/jdk/pull/4591/files/68b6f089..3152cdc7

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=4591&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=4591&range=01-02

  Stats: 10 lines in 2 files changed: 5 ins; 3 del; 2 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