XMLWordPrintable

    Details

    • Type: CSR
    • Status: Closed
    • Priority: P3
    • Resolution: Approved
    • Fix Version/s: 9
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Compatibility Risk:
      minimal
    • Compatibility Risk Description:
      New JDK 9 option
    • Interface Kind:
      add/remove/modify command line option
    • Scope:
      JDK

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mchung Mandy Chung
              Reporter:
              mchung Mandy Chung
              Reviewed By:
              Alan Bateman, Kumar Srinivasan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: