RFR: 8327218: Add an ability to specify modules which should have native access enabled [v2]

Mandy Chung mchung at openjdk.org
Wed Mar 6 19:11:46 UTC 2024


On Wed, 6 Mar 2024 19:00:19 GMT, Alan Bateman <alanb at 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


More information about the build-dev mailing list