From d16fa82888681e5de1753387a1b499dbe35a9cfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Fri, 26 Aug 2022 09:29:17 +0200 Subject: [PATCH] Remove remaining native build-time class initializations See oracle/graal#4673 related issue. Closes gh-29018 --- .../org.springframework/spring-core/native-image.properties | 6 +----- .../org.springframework/spring-web/native-image.properties | 2 -- 2 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 spring-web/src/main/resources/META-INF/native-image/org.springframework/spring-web/native-image.properties 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 1c131a435cb..f75232b9b3b 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 @@ -1,8 +1,4 @@ -Args = --initialize-at-build-time=org.springframework.aot.graalvm.ThrowawayClassLoader,\ -org.springframework.util.ClassUtils,\ -org.springframework.util.ConcurrentReferenceHashMap,\ -org.springframework.util.MimeType,\ -org.springframework.util.MimeTypeUtils \ +Args = --initialize-at-build-time=org.springframework.aot.graalvm.ThrowawayClassLoader \ --add-exports org.graalvm.nativeimage.builder/com.oracle.svm.hosted=ALL-UNNAMED \ --add-exports jdk.internal.vm.compiler/org.graalvm.compiler.debug=ALL-UNNAMED \ --add-exports jdk.internal.vm.ci/jdk.vm.ci.meta=ALL-UNNAMED \ diff --git a/spring-web/src/main/resources/META-INF/native-image/org.springframework/spring-web/native-image.properties b/spring-web/src/main/resources/META-INF/native-image/org.springframework/spring-web/native-image.properties deleted file mode 100644 index 2c3c113a9e1..00000000000 --- a/spring-web/src/main/resources/META-INF/native-image/org.springframework/spring-web/native-image.properties +++ /dev/null @@ -1,2 +0,0 @@ -Args = --initialize-at-build-time=org.springframework.http.HttpStatus,\ -org.springframework.http.MediaType