RFR: 8374711: Hotspot runtime/CommandLine/OptionsValidation/TestOptionsWithRanges fails without printing the option name
David Holmes
dholmes at openjdk.org
Wed Jan 7 21:38:59 UTC 2026
On Wed, 7 Jan 2026 13:06:49 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> 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.
Trivial enhancement looks good but I don't think it will help with the underlying issue as it seems to be a problem parsing the output of PrintFlagsRanges
-------------
Marked as reviewed by dholmes (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/29089#pullrequestreview-3636887857
More information about the hotspot-runtime-dev
mailing list