RFR: 8336895: BufferedReader doesn't read full \r\n line ending when it doesn't fit in buffer

Jaikiran Pai jpai at openjdk.org
Fri Jul 26 04:44:37 UTC 2024


On Thu, 25 Jul 2024 00:24:59 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

> Add some verbiage stating that two buffered readers or input streams should not be used to read from the same reader or input stream, respectively.

src/java.base/share/classes/java/io/BufferedInputStream.java line 56:

> 54:  * to read from the same {@code InputStream}. There is no way for a
> 55:  * {@code BufferedInputStream} to know what another {@code BufferedInputStream}
> 56:  * has read from the underlying {@code InputStream}, nor dues it have access

Hello Brian, there's a typo here - should have been "does" instead of "dues". Same in the other class in this PR.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20320#discussion_r1692503702


More information about the core-libs-dev mailing list