On Wed, 6 Mar 2024 19:00:19 GMT, Alan Bateman <al...@openjdk.org> wrote:
>> Native access is needed for modules which calls restricted methods [1]. >> AFAICT, java.base, java.desktop and jdk.incubator.vector use >> java.lang.foreign but I don't know if they call restricted methods or not. >> >> https://download.java.net/java/early_access/jdk23/docs/api/java.base/java/lang/foreign/package-summary.html#restricted > >> Native access is needed for modules which calls restricted methods [1]. > > In time, we'll need it for modules using JNI too. We can do this trimming in > another PR to avoid Jan getting pulled into deeply. Doing it in another PR is fine with me. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/18106#discussion_r1515009659