-
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
svm.jar declares wrong module-info #2528
Comments
Working around oracle/graal#2528 Similar to: quarkusio/quarkus#9686
This looks like a bug. We should not need this since we can use |
Ha! That's a fun one. We have
in @dougxc any recommendations how to deal with such annoyances? |
I consider this an mx bug. Having a library in |
That should definitely be fixed. However, can we not replace the dependency on |
Since we have |
Fixed: graalvm/mx@8ec2639 |
@bdemers this is fixed on master and the next snapshot release will contain the fix. It will be available at: https://github.com/graalvm/graalvm-ce-dev-builds/releases soon. |
The svm-20.1.0.jar declares the wrong module-info metadata.
This means that annotations
com.oracle.svm.core.annotate.*
cannot be used via JPMS.It looks like there are a couple problems with this:
1.) If objectweb is included (uberjar) into the
svm
jar it should be shaded into a sub-package (ideally just included as a transitive dependency instead)2.) The annotations could be pulled out into a separate jar (#1005)
3.) The current module-info should be replaced with the correct one for this project.
com.oracle.svm
?4.) The Maven groupId and root package are a little miss leading
org.graalvm.nativeimage
vscom.oracle.svm
(obviously, this is not a requirement)NOTE: I browsed the decompiled module-info.java from Intellij, so this information may not be perfect.
History
After upgrading from 20.0.0 to 20.1.0 (JDK 11) I ran into an issue:
After seeing a similar error:
quarkusio/quarkus#9633
I attempted to use the same solution:
https://github.com/quarkusio/quarkus/pull/9686/files#diff-53f95f6cd460a468fc1204e2e102d09eR8-R25
This resulted in the JPMS problems above.
Workaround
Along with adding the
Target_java_io_ObjectStreamClass
workaround above, I had to remove my project's module-info.Version
OpenJDK Runtime Environment GraalVM CE 20.1.0 (build 11.0.7+10-jvmci-20.1-b02)
OS name: "mac os x", version: "10.15.4", arch: "x86_64", family: "mac"
The text was updated successfully, but these errors were encountered: