mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-03 21:49:03 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
-1
@@ -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
|
||||
""");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user