Add missing build time class initialization

As gh-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
https://github.com/oracle/graal/issues/4673
for HttpStatus.

See gh-28624
This commit is contained in:
Sébastien Deleuze
2022-06-27 17:33:14 +02:00
parent af16e49334
commit 798dd4fec0
3 changed files with 7 additions and 1 deletions

View File

@@ -1 +0,0 @@
Args = --initialize-at-build-time=org.springframework.aot.graalvm.ThrowawayClassLoader

View File

@@ -0,0 +1,5 @@
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

View File

@@ -0,0 +1,2 @@
Args = --initialize-at-build-time=org.springframework.http.HttpStatus,\
org.springframework.http.MediaType