Skip to content

Commit

Permalink
Enable ThrowMissingRegistrationErrors with GraalVM >= 23.1
Browse files Browse the repository at this point in the history
This feature will become available as non-experimental in the next
release (GraalVM for Java 22), and will be promoted to the default
behavior as the community adopts it.
  • Loading branch information
zakkak committed Oct 10, 2023
1 parent 89a0142 commit bda05ba
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -814,9 +814,13 @@ public NativeImageInvokerInfo build() {
"-H:BuildOutputJSONFile=" + nativeImageName + "-build-output-stats.json");
}

// only available in GraalVM 23.1.0+. Expected to become the default in GraalVM 24.0.0.
// only available in GraalVM 23.1.0+.
if (graalVMVersion.compareTo(GraalVM.Version.VERSION_23_1_0) >= 0) {
// Expected to become the default in GraalVM 24.0.0.
nativeImageArgs.add("--strict-image-heap");
// This feature will become available as non-experimental in the next release (GraalVM for Java 22,
// GraalVM 24.0.0), and will be promoted to the default behavior as the community adopts it.
addExperimentalVMOption(nativeImageArgs, "-H:ThrowMissingRegistrationErrors=");
}

/*
Expand Down

0 comments on commit bda05ba

Please sign in to comment.