-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[23.0.0] The org.graalvm.truffle:truffle-api
JAR contains JDK-19 specific files which are compiled with JDK 20
#6801
Comments
This was quite some oversight. Thanks for the report. We test these days with 20 and 17. |
You mean bump the directory name from Any chance for a quick-release to fix this? I'm not really sure how to workaround that unfortunately. |
You could use JDK 20 or remove the folder from the jar. |
I can't use JDK 20 unfortunately because Gradle still doesn't support it (fully). As for removing the folder from the JAR... that's easier said than done when using build systems like Gradle. 😄 If there are no plans for a quick-release I'll try to think of something, thanks! |
You can also use JDK 17 or 18. Sorry for the inconvenience. |
No worries. Thanks for the great work and support! |
I think the issue comes from this code: I don't think we should ever use something else than I'm not 100% sure yet how we should deal with /cc @dougxc |
Sorry, I don't know the right path forward here either. |
My recommendation in the short term would be to ensure |
We want to detect VirtualThreads and fail. If we bump to the next release e.g. 20, the detection will not work for 19. |
If the next release is for JDK 21 the question goes away. |
ok. |
I believe this issue has been resolved in GraalVM 23.0.1. In it I see only version-specific files for JDK 20. Thanks all! |
Describe GraalVM and your environment :
java -Xinternalversion
:Have you verified this issue still happens when using the latest snapshot?
No.
Describe the issue
Running Graal's Truffle API on JDK 19 doesn't work. I get:
Which is normal because the file
META-INF/versions/19/com/oracle/truffle/api/impl/JDKAccessor.class
in theorg.graalvm.truffle:truffle-api
JAR is compiled with JDK 20.Code snippet or code repository that reproduces the issue
Any code that uses Graal.
Steps to reproduce the issue
Any code that uses Graal.
Expected behavior
This file to be compiled with JDK-19 max.
Additional context
This makes the Truffle API unusable on JDK-19.
The text was updated successfully, but these errors were encountered: