You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: substratevm/src/com.oracle.svm.core.jdk11/src/com/oracle/svm/core/jdk11/Target_java_lang_Module_JDK11OrLater.java
VMError.shouldNotReachHere(String.format("APIOption %s(%s) cannot have more than one APIOption.fixedValue", apiOptionName, rawOptionName));
203
204
}
204
-
if (apiAnnotation.fixedValue().length > 0 && apiAnnotation.defaultValue().length > 0) {
205
+
if (hasFixedValue && apiAnnotation.defaultValue().length > 0) {
205
206
VMError.shouldNotReachHere(String.format("APIOption %s(%s) APIOption.defaultValue and APIOption.fixedValue cannot be combined", apiOptionName, rawOptionName));
"Class specified as valueTransformer for @APIOption " + apiOptionName + " cannot be loaded or instantiated: " + transformerClass.getTypeName(), ex.getCause());
237
238
}
238
239
}
240
+
if (apiAnnotation.valueSeparator().length == 0) {
241
+
throwVMError.shouldNotReachHere(String.format("APIOption %s(%s) does not specify any valueSeparator", apiOptionName, rawOptionName));
242
+
}
243
+
if (Arrays.asList(apiAnnotation.valueSeparator()).contains(APIOption.WHITESPACE_SEPARATOR)) {
244
+
StringmsgTail = " cannot use APIOption.WHITESPACE_SEPARATOR as value separator";
NativeImage.showError("'" + headArg.substring(groupNameAndSeparator.length()) + "' is not a valid value for the option " + groupName + ". Supported values are " + supportedValues);
285
+
NativeImage.showError("In " + args.argumentOrigin + " '" + headArg.substring(groupNameAndSeparator.length()) + "' is not a valid value for the option " + groupName +
286
+
". Supported values are " + supportedValues);
270
287
}
271
288
}
272
289
}
273
290
returnfalse;
274
291
}
275
292
276
-
StringtranslateOption(Stringarg) {
293
+
StringtranslateOption(ArgumentQueueargQueue) {
277
294
OptionInfooption = null;
278
295
String[] optionNameAndOptionValue = null;
296
+
StringargumentOrigin = argQueue.argumentOrigin;
279
297
found: for (OptionInfooptionInfo : apiOptions.values()) {
0 commit comments