Allow DataSize to be initialized at build time

Previously, Graal failed to build a native image as DataSize was
unintentionally initialized at build time. This commit workarounds the
faulty assumption by flagging it as safe to initialize at build-time.

Closes gh-28328
This commit is contained in:
Stephane Nicoll 2022-04-12 11:33:27 +02:00
parent 5fc8a9839c
commit 64570a85b3
1 changed files with 2 additions and 1 deletions

View File

@ -1 +1,2 @@
Args = --initialize-at-build-time=org.springframework.core.NativeDetector
Args = --initialize-at-build-time=org.springframework.core.NativeDetector \
--initialize-at-build-time=org.springframework.util.unit.DataSize