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

What is means for pyjnius, JEP 472: Prepare to Restrict the Use of JNI #742

Open
ismailsimsek opened this issue Jan 26, 2025 · 2 comments
Open

Comments

@ismailsimsek
Copy link

There is JEP 472: Prepare to Restrict the Use of JNI anounced.

What this means for pyjnius? will it mean pyjnius will not be usable in the future? when JNI is disabled?

@cmacdonald
Copy link
Contributor

I think that as jnius controls the startup of the JVM, we can pass the flag --enable-native-access.

@cmacdonald
Copy link
Contributor

I gave a shot of our pyjnius based platform under a pre-release of JDK 24. I got two warnings, neither of which were related to Jnius. (One was System.loadLibrary() being called by a Java dependency; another was Guava calling sun.misc.Unsafe.)

So, from that quick scan, it doesnt seem that JEP 472 will be a problem. Once JDK24 has been released, around April, we can add it to the CI testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants