RFR: 8287003: InputStreamReader::read() can return zero despite writing a char in the buffer
Jaikiran Pai
jpai at openjdk.java.net
Fri May 27 13:06:40 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()`.
Looks fine to me.
-------------
Marked as reviewed by jpai (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/8895
More information about the core-libs-dev
mailing list