RFR: 8248383: Clarify java.io.Reader.read(char[], ...) behavior for full array

Brian Burkhalter bpb at openjdk.java.net
Thu Dec 10 18:54:02 UTC 2020


On Thu, 10 Dec 2020 18:28:54 GMT, Lance Andersen <lancea at openjdk.org> wrote:

>> Please review this small verbiage change to specify clearly the behavior of `Reader::read(char[] cbuf)` when the length of `cbuf` is zero, and that of `Reader::read(char[] cbuf, int off, int len)` when `len` is zero.
>
> Hi Brian,
> 
> Are there existing tests that cover the behavior described in the proposed change?

Hi @LanceAndersen. I don't see any tests specific to this issue, but then there are ten Reader classes in `java.io`, seven of which are not abstract.

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

PR: https://git.openjdk.java.net/jdk/pull/1737


More information about the core-libs-dev mailing list