Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jdk24 java/foreign/handles/Driver Command-line option unrecognised: --illegal-native-access=deny #20354

Closed
pshipton opened this issue Oct 15, 2024 · 2 comments

Comments

@pshipton
Copy link
Member

pshipton commented Oct 15, 2024

https://openj9-jenkins.osuosl.org/job/Test_openjdknext_j9_sanity.openjdk_aarch64_mac_Personal_testList_1/6
jdk_foreign_1
java/foreign/handles/Driver.java
java/foreign/enablenativeaccess/TestEnableNativeAccess.java
java/foreign/enablenativeaccess/TestEnableNativeAccessDynamic.java

JVMJ9VM007E Command-line option unrecognised: --illegal-native-access=deny
Copy link

Issue Number: 20354
Status: Open
Recommended Components: comp:vm, comp:test, comp:jclextensions
Recommended Assignees: jasonfengj9, babsingh, pshipton

babsingh added a commit to babsingh/openj9 that referenced this issue Dec 4, 2024
After reading the last --illegal-native-access=<VALUE> option,
the system property jdk.module.illegal.native.access is assigned
the specified <VALUE>.

Related: eclipse-openj9#19680
Related: eclipse-openj9#20354

Signed-off-by: Babneet Singh <[email protected]>
babsingh added a commit to babsingh/openj9 that referenced this issue Dec 4, 2024
After reading the last --illegal-native-access=<VALUE> option,
the system property jdk.module.illegal.native.access is assigned
the specified <VALUE>.

Related: eclipse-openj9#19680
Related: eclipse-openj9#20354

Signed-off-by: Babneet Singh <[email protected]>
babsingh added a commit to babsingh/openj9 that referenced this issue Dec 9, 2024
Add native access checks in System.load/loadLibrary to comply with
JEP472 (Prepare to Restrict the Use of JNI).

Related: eclipse-openj9#19680
Related: eclipse-openj9#20354

Signed-off-by: Babneet Singh <[email protected]>
babsingh added a commit to babsingh/openj9 that referenced this issue Dec 9, 2024
Add native access checks in System.load/loadLibrary to comply with
JEP472 (Prepare to Restrict the Use of JNI).

Related: eclipse-openj9#19680
Related: eclipse-openj9#20354

Signed-off-by: Babneet Singh <[email protected]>
babsingh added a commit to babsingh/openj9 that referenced this issue Dec 16, 2024
A new version of ClassLoader.findNative has been introduced, which
accepts the Java method name and the Java class where the native
method is declared as input parameters. It performs native access
checks to comply with JEP 472 (Prepare to Restrict the Use of JNI).

Related: eclipse-openj9#19680
Related: eclipse-openj9#20354

Signed-off-by: Babneet Singh <[email protected]>
babsingh added a commit to babsingh/openj9 that referenced this issue Dec 16, 2024
A new version of ClassLoader.findNative has been introduced, which
accepts the Java method name and the Java class where the native
method is declared as input parameters. It performs native access
checks to comply with JEP 472 (Prepare to Restrict the Use of JNI).

Related: eclipse-openj9#19680
Related: eclipse-openj9#20354

Signed-off-by: Babneet Singh <[email protected]>
tajila pushed a commit to tajila/openj9 that referenced this issue Jan 3, 2025
After reading the last --illegal-native-access=<VALUE> option,
the system property jdk.module.illegal.native.access is assigned
the specified <VALUE>.

Related: eclipse-openj9#19680
Related: eclipse-openj9#20354

Signed-off-by: Babneet Singh <[email protected]>
@babsingh
Copy link
Contributor

babsingh commented Jan 9, 2025

Closing, #20755 resolves this issue.

@babsingh babsingh closed this as completed Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants