Skip to content

Commit 517a073

Browse files
committed
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
1 parent dcba947 commit 517a073

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-core/src/main/java/org/springframework/aot/nativex/feature/PreComputeFieldFeature.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* GraalVM {@link Feature} that substitutes boolean field values that match a certain pattern
2727
* with values pre-computed AOT without causing class build-time initialization.
2828
*
29-
* <p>It is possible to pass <pre style="code">-Dspring.aot.precompute=verbose</pre> as a
29+
* <p>It is possible to pass <pre style="code">-Dspring.native.precompute.log=verbose</pre> as a
3030
* <pre style="code">native-image</pre> compiler build argument to display detailed logs
3131
* about pre-computed fields.</p>
3232
*
@@ -36,7 +36,7 @@
3636
*/
3737
class PreComputeFieldFeature implements Feature {
3838

39-
private static final boolean verbose = "verbose".equals(System.getProperty("spring.aot.precompute"));
39+
private static final boolean verbose = "verbose".equals(System.getProperty("spring.native.precompute.log"));
4040

4141
private static final Pattern[] patterns = {
4242
Pattern.compile(Pattern.quote("org.springframework.core.NativeDetector#inNativeImage")),

0 commit comments

Comments
 (0)