RFR: 8300979: Lazily initialize (byte, char)arr in java.io.DataInputStream

Per Minborg pminborg at openjdk.org
Wed Mar 22 10:20:45 UTC 2023


On Tue, 21 Mar 2023 20:35:36 GMT, Sergey Tsypanov <stsypanov at openjdk.org> wrote:

> Nice idea. Just wonder could we do the same for `BufferedInputStream`?

I think it is doable but would require some more work as nullity is used as a "closed flag". Please raise a separate issue about this.

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

PR Comment: https://git.openjdk.org/jdk/pull/13121#issuecomment-1479279043


More information about the core-libs-dev mailing list