RFR: 8374711: Hotspot runtime/CommandLine/OptionsValidation/TestOptionsWithRanges fails without printing the option name
Matthias Baesken
mbaesken at openjdk.org
Wed Jan 7 13:14:38 UTC 2026
We got the following error today on Linux Alpine :
command: driver TestOptionsWithRanges 9 of 10
reason: User specified action: run driver/timeout=1800 TestOptionsWithRanges 9 of 10
java.lang.Error: Expected only "int", "intx", "size_t", "uint", "uintx", "uint64_t", or "double" option types! Got [Global type!
at optionsvalidation.JVMOption.createVMOption(JVMOption.java:117)
at optionsvalidation.JVMOptionsUtils.getJVMOptions(JVMOptionsUtils.java:282)
at optionsvalidation.JVMOptionsUtils.getOptionsAsMap(JVMOptionsUtils.java:477)
at optionsvalidation.JVMOptionsUtils.getOptionsWithRangeAsMap(JVMOptionsUtils.java:548)
at TestOptionsWithRanges.main(TestOptionsWithRanges.java:213)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
at java.base/java.lang.Thread.run(Thread.java:1516)
It would be helpful to get the option name in the Error output, but this is not yet available. So we should add it.
-------------
Commit messages:
- JDK-8374711
Changes: https://git.openjdk.org/jdk/pull/29089/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=29089&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8374711
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/29089.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/29089/head:pull/29089
PR: https://git.openjdk.org/jdk/pull/29089
More information about the hotspot-runtime-dev
mailing list