RFR: 8296431 - PushbackInputStream should override transferTo [v2]

Alan Bateman alanb at openjdk.org
Sat Nov 5 07:23:28 UTC 2022


On Fri, 4 Nov 2022 22:24:57 GMT, Markus KARG <duke at openjdk.org> wrote:

>> This PR implements JDK-8296431
>
> Markus KARG has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fixed wrong bug number

src/java.base/share/classes/java/io/PushbackInputStream.java line 416:

> 414:         Objects.requireNonNull(out, "out");
> 415:         ensureOpen();
> 416:         if (lock != null) {

PushbackInputStream's read methods are not synchronised so it doesn't make sense to introduce this for transferTo. In other words, I think you leave "clockLock" as it was.

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

PR: https://git.openjdk.org/jdk/pull/10999


More information about the core-libs-dev mailing list