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

Prevent IAE when accessing GraalVM classes #82

Merged
merged 1 commit into from
Oct 18, 2023
Merged

Conversation

gastaldi
Copy link
Member

@gastaldi gastaldi commented Oct 18, 2023

This prevents the following error when building to native using the following environment:

native-image 21 2023-09-19
OpenJDK Runtime Environment Mandrel-23.1.0.0-Final (build 21+35-LTS)
OpenJDK 64-Bit Server VM Mandrel-23.1.0.0-Final (build 21+35-LTS, mixed mode)

Error:

Caused by: java.lang.IllegalAccessError: class io.quarkiverse.poi.runtime.graal.POIFeature (in unnamed module @0x127e70c5) cannot access class org.graalvm.nativeimage.impl.RuntimeClassInitializationSupport (in module org.graalvm.nativeimage) because module org.graalvm.nativeimage does not export org.graalvm.nativeimage.impl to unnamed module @0x127e70c5

Caused by: java.lang.IllegalAccessError: class io.quarkiverse.poi.runtime.graal.POIFeature (in unnamed module @0x127e70c5) cannot access class org.graalvm.nativeimage.impl.RuntimeClassInitializationSupport (in module org.graalvm.nativeimage) because module org.graalvm.nativeimage does not export org.graalvm.nativeimage.impl to unnamed module @0x127e70c5
@gastaldi gastaldi merged commit 5cf9b06 into main Oct 18, 2023
@gastaldi gastaldi deleted the graalvm_change branch October 18, 2023 15:47
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

Successfully merging this pull request may close these issues.

2 participants