On Sat, 16 Dec 2023 17:13:17 GMT, Chen Liang <li...@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