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

Matthias Baesken mbaesken at openjdk.org
Thu Jan 8 12:45:38 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.

Thanks for the reviews !

-------------

PR Comment: https://git.openjdk.org/jdk/pull/29089#issuecomment-3723704047


More information about the hotspot-runtime-dev mailing list