On Fri, 4 Nov 2022 22:24:57 GMT, Markus KARG <d...@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

Reply via email to