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

Brian Burkhalter bpb at openjdk.java.net
Fri Jun 25 20:47:21 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 refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR. The pull request contains one new commit since the last revision:

  6766844: Add an API note 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/3152cdc7..a53849a2

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

  Stats: 2 lines in 1 file changed: 0 ins; 0 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