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

Chen Liang liach at openjdk.org
Sat Dec 16 17:17:42 UTC 2023


On Sat, 16 Dec 2023 00:11:05 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> If we drop the method for now I have to write it later again, I guess
>
>> 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())

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

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


More information about the core-libs-dev mailing list