RFR: 8320971: Use BufferedInputStream.buf directly when param of implTransferTo() is trusted [v15]

Markus KARG duke at openjdk.org
Sat Dec 16 17:54:45 UTC 2023


On Sat, 16 Dec 2023 17:13:17 GMT, Chen Liang <liach at openjdk.org> wrote:

>>> If we drop the method for now I have to write it later again, I guess
>> 
>> Maybe, but it's archived so it's easy enough.
>
> If this is only used after Module system is ready, we can use something like:
> https://github.com/openjdk/jdk/blob/34351b7a7950a3b563748f40f2619374f62f9b16/src/java.base/share/classes/java/nio/file/Files.java#L3352
> 
> 
> if (out.getClass().getModule() == Object.class.getModule())

I propose we simply go with the original solution, so we stay sync with BAIS.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16879#discussion_r1428872747


More information about the core-libs-dev mailing list