Skip to content

Commit 8d08b1d

Browse files
committed
Make *_PRESENT fields constant at build time
See spring-projectsgh-28624
1 parent 92cf1e1 commit 8d08b1d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

spring-core/graalvm/src/main/java/org/springframework/aot/graalvm/ConstantFieldSubstitutionProcessor.java

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ class ConstantFieldSubstitutionProcessor extends SubstitutionProcessor {
4545
private static Pattern[] patterns = {
4646
Pattern.compile(Pattern.quote("org.springframework.core.NativeDetector#imageCode")),
4747
Pattern.compile(Pattern.quote("org.springframework.") + ".*#.*Present"),
48+
Pattern.compile(Pattern.quote("org.springframework.") + ".*#.*_PRESENT")
4849
};
4950

5051
private final ThrowawayClassLoader throwawayClassLoader;

0 commit comments

Comments
 (0)