Skip to content

Commit 798dd4f

Browse files
committed
Add missing build time class initialization
As spring-projectsgh-28624 supports only static boolean fields, we still need a few classes to be initialized at build time. Such explicit configuration should be in theory avoidable, so we will work with the GraalVM team to see if this can be fixed, see for example oracle/graal#4673 for HttpStatus. See spring-projectsgh-28624
1 parent af16e49 commit 798dd4f

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

spring-core/graalvm/src/main/resources/META-INF/native-image/org.springframework/spring-core/native-image.properties

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Args = --initialize-at-build-time=org.springframework.aot.graalvm.ThrowawayClassLoader,\
2+
org.springframework.util.ClassUtils,\
3+
org.springframework.util.ConcurrentReferenceHashMap,\
4+
org.springframework.util.MimeType,\
5+
org.springframework.util.MimeTypeUtils
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Args = --initialize-at-build-time=org.springframework.http.HttpStatus,\
2+
org.springframework.http.MediaType

0 commit comments

Comments
 (0)