From 206f505d5bfd27822a93b9e14a99e28aa3f2f5c8 Mon Sep 17 00:00:00 2001 From: Moritz Halbritter Date: Thu, 30 Jun 2022 09:40:02 +0200 Subject: [PATCH] Open GraalVM internals to the ConstantFieldFeature This is needed as GraalVM 22.2 enabled the module system when building native-images and all plugins have to participate in it. --- .../org.springframework/spring-core/native-image.properties | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spring-core/src/main/resources/META-INF/native-image/org.springframework/spring-core/native-image.properties b/spring-core/src/main/resources/META-INF/native-image/org.springframework/spring-core/native-image.properties index e6881ff52f1..75d7442ece6 100644 --- a/spring-core/src/main/resources/META-INF/native-image/org.springframework/spring-core/native-image.properties +++ b/spring-core/src/main/resources/META-INF/native-image/org.springframework/spring-core/native-image.properties @@ -2,4 +2,8 @@ Args = --initialize-at-build-time=org.springframework.aot.graalvm.ThrowawayClass org.springframework.util.ClassUtils,\ org.springframework.util.ConcurrentReferenceHashMap,\ org.springframework.util.MimeType,\ -org.springframework.util.MimeTypeUtils +org.springframework.util.MimeTypeUtils \ +--add-opens org.graalvm.nativeimage.builder/com.oracle.svm.hosted=ALL-UNNAMED \ +--add-opens jdk.internal.vm.compiler/org.graalvm.compiler.debug=ALL-UNNAMED \ +--add-opens jdk.internal.vm.ci/jdk.vm.ci.meta=ALL-UNNAMED \ +--add-opens org.graalvm.nativeimage.builder/com.oracle.svm.core.meta=ALL-UNNAMED