Skip to content

Commit

Permalink
Add missing build time class initialization
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sdeleuze committed Jun 27, 2022
1 parent af16e49 commit 798dd4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Args = --initialize-at-build-time=org.springframework.http.HttpStatus,\
org.springframework.http.MediaType

0 comments on commit 798dd4f

Please sign in to comment.