RFR: 8378110: Add -XX: prefix to settings-file flags in RuntimeMXBean.getInputArguments() [v2]
Kevin Walls
kevinw at openjdk.org
Fri Feb 27 14:33:25 UTC 2026
On Fri, 27 Feb 2026 14:21:33 GMT, Oli Gillespie <ogillespie at openjdk.org> wrote:
>> test/jdk/java/lang/management/RuntimeMXBean/InputArgument.java line 86:
>>
>>> 84:
>>> 85: public static void main(String args[]) throws Exception {
>>> 86: if (args.length > 0 && "generateFlagsFile".equals(args[0])) {
>>
>> If it was "if args.length == 1 && ..." I would have understood it more quickly,
>> generateFlagsFile must be the only argument.
>
> Thanks, updated.
Thanks, looks like it is now > 1 but should be == 1 ?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29793#discussion_r2864611412
More information about the serviceability-dev
mailing list