RFR: 8324126: Error message for mistyping -XX:+Unlock...Options is not helpful
Sonia Zaldana Calles
szaldana at openjdk.org
Thu Jan 25 21:53:41 UTC 2024
If we run the VM option to unlock experimental vm options without the preceding ‘+’, the error message is not very helpful:
```Error: VM option 'UnlockExperimentalVMOptions' is experimental and must be enabled via -XX:+UnlockExperimentalVMOptions.```
With the proposed change, we should see a more descriptive error message, namely the lack of a +/- sign.
```Missing +/- setting for VM option 'UnlockExperimentalVMOptions'```
Testing: runtime/commandLine regression tests pass. Also added a regression test to verify expected behaviour.
-------------
Commit messages:
- 8324126: Error message for mistyping -XX:+Unlock...Options is not helpful
Changes: https://git.openjdk.org/jdk/pull/17575/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=17575&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8324126
Stats: 18 lines in 2 files changed: 5 ins; 2 del; 11 mod
Patch: https://git.openjdk.org/jdk/pull/17575.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/17575/head:pull/17575
PR: https://git.openjdk.org/jdk/pull/17575
More information about the hotspot-runtime-dev
mailing list