On Tue, 23 Aug 2022 17:12:50 GMT, Alan Bateman <al...@openjdk.org> wrote:

> The main thing is to think through the implications for async close where the 
> close method replaces 'in'.

Suppose we have a scenario where `in` is replaced asynchronously in one of 
implementations and the implementation is passed into constructor of 
`DataInputStream`. In this case the patched code is less NPE-vulnerable, isn't 
it?

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

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

Reply via email to