RFR: 8287003: InputStreamReader::read() can return zero despite writing a char in the buffer

Roger Riggs rriggs at openjdk.java.net
Fri May 27 13:31:38 UTC 2022


On Wed, 25 May 2022 23:08:38 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> If only a leftover `char` remains in the stream, do not add `-1` to the return value in `lockedRead()`.

Marked as reviewed by rriggs (Reviewer).

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

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


More information about the nio-dev mailing list