Skip to content

Commit

Permalink
Use spring.native.precompute.log system property
Browse files Browse the repository at this point in the history
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 spring-projectsgh-30571
  • Loading branch information
sdeleuze committed Jun 14, 2023
1 parent dcba947 commit 517a073
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
* <p>It is possible to pass <pre style="code">-Dspring.aot.precompute=verbose</pre> as a
* <p>It is possible to pass <pre style="code">-Dspring.native.precompute.log=verbose</pre> as a
* <pre style="code">native-image</pre> compiler build argument to display detailed logs
* about pre-computed fields.</p>
*
Expand All @@ -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")),
Expand Down

0 comments on commit 517a073

Please sign in to comment.