-
CSR
-
Resolution: Approved
-
P3
-
minimal
-
New JDK 9 option
-
add/remove/modify command line option
-
JDK
Summary
Add java --dry-run
Problem
There are many new options for configuration where modules are loaded and
the set of modules that should be resolved at startup. It has been proposed
that we have some way to invoke java
and exit after VM is initialized.
This CCC proposes to add java --dry-run option.
See CCC-8136930 for the proposal to move the new JDK 9 options to full GNU-style options.
Solution
Add java --dry-run option. This option causes the launcher to stop short of running the main method. It will load the VM and also locates and loads the main class. It will report any error detected by the VM or module system initialization.
Specification
New java launcher option
--dry-run
create VM but do not execute main method
- csr for
-
JDK-8159596 Add java --dry-run
-
- Closed
-