We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d085393 commit 42d7a13Copy full SHA for 42d7a13
core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java
@@ -834,6 +834,16 @@ public NativeImageInvokerInfo build() {
834
835
addExperimentalVMOption(nativeImageArgs, "-H:+AllowFoldMethods");
836
837
+ /*
838
+ * Foreign Function and Memory API in Native Image, JDK's JEP 454
839
+ * This is needed for JDK 24+ internal native calls due to AWT,
840
+ * e.g. JDK-8337237 et al.
841
+ *
842
+ */
843
+ if (graalVMVersion.compareTo(GraalVM.Version.VERSION_24_2_0) >= 0) {
844
+ addExperimentalVMOption(nativeImageArgs, "-H:+ForeignAPISupport");
845
+ }
846
+
847
if (nativeConfig.headless()) {
848
nativeImageArgs.add("-J-Djava.awt.headless=true");
849
}
0 commit comments