Skip to content

Commit 180ea12

Browse files
committed
Stop using --report-unsupported-elements-at-runtime
This commit stop using the --report-unsupported-elements-at-runtime deprecated option with GraalVM 25+. Closes gh-35632
1 parent fad2068 commit 180ea12

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

spring-context/src/main/java/org/springframework/context/aot/ContextAotProcessor.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@ protected ClassNameGenerator createClassNameGenerator() {
136136
protected List<String> getDefaultNativeImageArguments(String applicationClassName) {
137137
List<String> args = new ArrayList<>();
138138
args.add("-H:Class=" + applicationClassName);
139-
args.add("--report-unsupported-elements-at-runtime");
140139
args.add("--no-fallback");
141140
return args;
142141
}

spring-context/src/test/java/org/springframework/context/aot/ContextAotProcessorTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ private Consumer<Path> hasGeneratedAssetsForSampleApplication() {
111111
.resolve("resource/META-INF/native-image/com.example/example/native-image.properties");
112112
assertThat(nativeImagePropertiesFile).exists().isRegularFile().hasContent("""
113113
Args = -H:Class=org.springframework.context.aot.ContextAotProcessorTests$SampleApplication \\
114-
--report-unsupported-elements-at-runtime \\
115114
--no-fallback
116115
""");
117116
};

0 commit comments

Comments
 (0)