Skip to content

Commit 1f2948f

Browse files
committed
Stop using --install-exit-handlers
This commit stop using the --install-exit-handlers deprecated option which is enabled by default with GraalVM 25+. Closes gh-35557
1 parent e901516 commit 1f2948f

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

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
@@ -138,7 +138,6 @@ protected List<String> getDefaultNativeImageArguments(String applicationClassNam
138138
args.add("-H:Class=" + applicationClassName);
139139
args.add("--report-unsupported-elements-at-runtime");
140140
args.add("--no-fallback");
141-
args.add("--install-exit-handlers");
142141
return args;
143142
}
144143

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ private Consumer<Path> hasGeneratedAssetsForSampleApplication() {
112112
assertThat(nativeImagePropertiesFile).exists().isRegularFile().hasContent("""
113113
Args = -H:Class=org.springframework.context.aot.ContextAotProcessorTests$SampleApplication \\
114114
--report-unsupported-elements-at-runtime \\
115-
--no-fallback \\
116-
--install-exit-handlers
115+
--no-fallback
117116
""");
118117
};
119118
}

0 commit comments

Comments
 (0)