> Please review this change, thanks! > > **Description:** > > Some VM long options only accept arguments in the `--option=value` form, even > though the launcher help states that long-option arguments may also be > separated by whitespace. As a result, options such as > `--illegal-final-field-mutation debug`, `--illegal-native-access warn` are > not parsed correctly. > > **Solution:** > > Add `IsNonModuleVMWhiteSpaceOption()` to identify VM long options that accept > whitespace-separated arguments and convert them to the `--option=value` form > before passing them to the VM. Add `--enable-final-field-mutation` to the > existing module-option handling. Normalize missing arguments for other VM > long options to `--option=` so that they can be handled by the existing > option validation logic. > > **Test:** > > GHA > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Guanqiang Han has updated the pull request incrementally with one additional commit since the last revision: Adjust code structure and add comments ------------- Changes: - all: https://git.openjdk.org/jdk/pull/31928/files - new: https://git.openjdk.org/jdk/pull/31928/files/bd434bc5..52e40ae9 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=31928&range=05 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=31928&range=04-05 Stats: 39 lines in 1 file changed: 23 ins; 6 del; 10 mod Patch: https://git.openjdk.org/jdk/pull/31928.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/31928/head:pull/31928 PR: https://git.openjdk.org/jdk/pull/31928
