-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Warnings about brotli (and other native libraries) in quarkus when using JDK 24+15 or better #44257
Comments
I believe the way to fix this is to have Quarkus add the |
A proof of concept only covering the runner jars can be seen in #44258 |
I was not aware of this! |
I wonder if Maven surefire provides us a way to add entries to the manifest. @dmlloyd do you know perhaps? |
That's my so far understanding. |
Very interesting, I was not aware of that. If that is the case, it means that we can vastly improve the experience for users when down the line all these flags start to become necessary ... |
For Surefire we should probably give JVM args. But one thing I'd be concerned about is that today, we might use |
How could one achieve that? In runner jars it's easy to achieve through the manifest entry, but in JVM args I guess it's not possible to hide it from verbose output.
+1 it's not a pressing issue, but even if it stays as a warning in JDK 25, it won't look good to have warnings popping up when using extensions that access native code. |
I don't mean "hide" as in "secret", I mean "hide" as in "abstract it away from the user so we can change it later without affecting them". |
Describe the bug
https://openjdk.org/jeps/472 got included with JDK 24. This means that JNI access will produce warnings when run with JDK 24 and certain restricted methods get called.
The warnings produced by the JDK are like the following:
Expected behavior
No warnings should be shown.
Actual behavior
A warning is produced.
How to Reproduce?
Output of
uname -a
orver
No response
Output of
java -version
openjdk version "24-beta" 2025-03-18 OpenJDK Runtime Environment Temurin-24+20-202410171910 (build 24-beta+20-ea) OpenJDK 64-Bit Server VM Temurin-24+20-202410171910 (build 24-beta+20-ea, mixed mode, sharing)
Quarkus version or git rev
8077229
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
The output of the reproducer is:
The text was updated successfully, but these errors were encountered: