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
GraalVM 21.2.0 + Java 16 - Native build fails #3226
Comments
It could be related to JEP 403: Strongly Encapsulate JDK Internals |
@ppalaga Do you remember the history of the stuff in this package and whether we need it anymore? |
hmm, com.sun.beans.WeakCache should be reflectively accessible until JDK17 by default(JEP 403 take effect since JDK17). So probably this error in JDK16 is something else |
Quarkus 2.4.1.Final + GraalVM 21.3.0-java17:
Should I file a new issue? |
It's bascially the same issue that was originally reported, so I think it's ok to cover it in this issue. We need to establish whether this particular substitution is actually needed anymore. |
I think it is not needed anymore. Moreover, it is not possible to use it anymore. Can I submit the PR removing this subsitution? |
Yes, but the slight issue is that we don't yet test multiple GraalVM JDK versions. We just test with whatever the Quarkus default is. If you can verify locally that removing it causes no issues, then feel free to create a PR. |
Trying to do so for current versions of Graal 21.2 Java 11, Graal 21.3 Java 11 + Java 17. |
Please review #3264 |
Sorry for coming too late, but I cannot help with any useful knowledge anyway. The last change is from me, but I just moved the classes to another package. The original classes come from the very early days of Camel Quarkus (Aug 1st, 2019!) and are by @lburgazzoli . I agree that we can remove them if a local testing by @vladimirfx (thanks!) is successful. |
I really don't recall the reason for that substitution, it can also be that we have fixed the problem in camel by the time |
I can see following error (running eg. any integration test in Native mode) using GraalVM 21.2.0 + JDK 16 (with JDK 11 it works great).
The text was updated successfully, but these errors were encountered: