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
This commit is contained in:
Sébastien Deleuze
2025-10-14 11:49:34 +02:00
parent fad2068bcb
commit 180ea125d2
2 changed files with 0 additions and 2 deletions
@@ -136,7 +136,6 @@ public abstract class ContextAotProcessor extends AbstractAotProcessor<ClassName
protected List<String> getDefaultNativeImageArguments(String applicationClassName) {
List<String> args = new ArrayList<>();
args.add("-H:Class=" + applicationClassName);
args.add("--report-unsupported-elements-at-runtime");
args.add("--no-fallback");
return args;
}
@@ -111,7 +111,6 @@ class ContextAotProcessorTests {
.resolve("resource/META-INF/native-image/com.example/example/native-image.properties");
assertThat(nativeImagePropertiesFile).exists().isRegularFile().hasContent("""
Args = -H:Class=org.springframework.context.aot.ContextAotProcessorTests$SampleApplication \\
--report-unsupported-elements-at-runtime \\
--no-fallback
""");
};