diff --git a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/option/SubstrateOptionsParser.java b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/option/SubstrateOptionsParser.java index baaa69e0ec52..6247d2331dce 100644 --- a/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/option/SubstrateOptionsParser.java +++ b/substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/option/SubstrateOptionsParser.java @@ -195,7 +195,9 @@ public static String commandArgument(OptionKey option, String value, String a } } } - return HOSTED_OPTION_PREFIX + value + option; + String optionString = HOSTED_OPTION_PREFIX + value + option; + assert apiOptionName == null : "The API option " + apiOptionName + " not found for " + optionString; + return optionString; } else { String apiOptionWithValue = null; for (APIOption apiOption : apiOptions) { diff --git a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporterFeature.java b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporterFeature.java index 12dfc270935a..0cdd7e80d321 100644 --- a/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporterFeature.java +++ b/substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ProgressReporterFeature.java @@ -93,7 +93,7 @@ public void createAdditionalArtifacts(@SuppressWarnings("unused") BuildArtifacts protected List getRecommendations() { return List.of(// in order of appearance: new UserRecommendation("INIT", - "Adopt " + SubstrateOptionsParser.commandArgument(ClassInitializationOptions.StrictImageHeap, "+", "strict-initial-heap", true, false) + + "Adopt " + SubstrateOptionsParser.commandArgument(ClassInitializationOptions.StrictImageHeap, "+", "strict-image-heap", true, false) + " to prepare for the next GraalVM release.", () -> !ClassInitializationOptions.StrictImageHeap.getValue()), new UserRecommendation("AWT", "Use the tracing agent to collect metadata for AWT.", ProgressReporterFeature::recommendTraceAgentForAWT),