Remove --allow-incomplete-classpath from native-image arguments

This parameter is now the default in GraalVM 22.1

Closes gh-31568
This commit is contained in:
Moritz Halbritter
2022-07-07 14:01:18 +02:00
parent 04391275c1
commit 4921954200
2 changed files with 0 additions and 2 deletions

View File

@@ -183,7 +183,6 @@ public class AotProcessor {
private void writeNativeImageProperties() {
List<String> args = new ArrayList<>();
args.add("-H:Class=" + this.application.getName());
args.add("--allow-incomplete-classpath");
args.add("--report-unsupported-elements-at-runtime");
args.add("--no-fallback");
args.add("--install-exit-handlers");

View File

@@ -121,7 +121,6 @@ class AotProcessorTests {
.resolve("resource/META-INF/native-image/com.example/example/native-image.properties");
assertThat(nativeImagePropertiesFile).exists().isRegularFile().hasContent("""
Args = -H:Class=org.springframework.boot.AotProcessorTests$SampleApplication \\
--allow-incomplete-classpath \\
--report-unsupported-elements-at-runtime \\
--no-fallback \\
--install-exit-handlers