8374711: Hotspot runtime/CommandLine/OptionsValidation/TestOptionsWithRanges fails without printing the option name

Reviewed-by: mdoerr, dholmes
This commit is contained in:
Matthias Baesken 2026-01-08 12:44:08 +00:00
parent c5159fc9fa
commit 78b1ca6cc1

View File

@ -116,7 +116,7 @@ public abstract class JVMOption {
default:
throw new Error("Expected only \"int\", \"intx\", \"size_t\", "
+ "\"uint\", \"uintx\", \"uint64_t\", or \"double\" "
+ "option types! Got " + type + " type!");
+ "option types! Got " + type + " type for option " + name + "!");
}
return parameter;