quarkiverse / quarkus-poi

Apache POI is an API to access Microsoft Office files. This extension provides integration with Apache POI
https://poi.apache.org/
Apache License 2.0
12 stars 3 forks source link

Prevent IAE when accessing GraalVM classes #82

Closed gastaldi closed 11 months ago

gastaldi commented 11 months ago

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