Skip to content

Commit 148820c

Browse files
committed
8374711: Hotspot runtime/CommandLine/OptionsValidation/TestOptionsWithRanges fails without printing the option name
Backport-of: 78b1ca6cc14e1a92bf25cbcfb687067ac17af92b
1 parent 0153d7e commit 148820c

File tree

1 file changed

+1
-1
lines changed
  • test/hotspot/jtreg/runtime/CommandLine/OptionsValidation/common/optionsvalidation

1 file changed

+1
-1
lines changed

test/hotspot/jtreg/runtime/CommandLine/OptionsValidation/common/optionsvalidation/JVMOption.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ static JVMOption createVMOption(String type, String name) {
116116
default:
117117
throw new Error("Expected only \"int\", \"intx\", \"size_t\", "
118118
+ "\"uint\", \"uintx\", \"uint64_t\", or \"double\" "
119-
+ "option types! Got " + type + " type!");
119+
+ "option types! Got " + type + " type for option " + name + "!");
120120
}
121121

122122
return parameter;

0 commit comments

Comments
 (0)