From 517a073f33db534f09fdcd9ab88794bc12c0581f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Wed, 14 Jun 2023 17:57:16 +0200 Subject: [PATCH] Use spring.native.precompute.log system property This commit changes the Java system property used to control PreComputeFieldFeature verbose logging from spring.aot.precompute to spring.native.precompute.log in order to clarify its purpose and avoid confusion with AOT processing of JVM bytecode or Java sources. See gh-30571 --- .../aot/nativex/feature/PreComputeFieldFeature.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/aot/nativex/feature/PreComputeFieldFeature.java b/spring-core/src/main/java/org/springframework/aot/nativex/feature/PreComputeFieldFeature.java index b90cbe47110f..01c8d8d756ae 100644 --- a/spring-core/src/main/java/org/springframework/aot/nativex/feature/PreComputeFieldFeature.java +++ b/spring-core/src/main/java/org/springframework/aot/nativex/feature/PreComputeFieldFeature.java @@ -26,7 +26,7 @@ * GraalVM {@link Feature} that substitutes boolean field values that match a certain pattern * with values pre-computed AOT without causing class build-time initialization. * - *

It is possible to pass

-Dspring.aot.precompute=verbose
as a + *

It is possible to pass

-Dspring.native.precompute.log=verbose
as a *
native-image
compiler build argument to display detailed logs * about pre-computed fields.

* @@ -36,7 +36,7 @@ */ class PreComputeFieldFeature implements Feature { - private static final boolean verbose = "verbose".equals(System.getProperty("spring.aot.precompute")); + private static final boolean verbose = "verbose".equals(System.getProperty("spring.native.precompute.log")); private static final Pattern[] patterns = { Pattern.compile(Pattern.quote("org.springframework.core.NativeDetector#inNativeImage")),