Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7902059

jtreg docs need updating for how to invoke java subprocesses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • None
    • None
    • tools
    • None

      http://openjdk.java.net/jtreg/vmoptions.html
      is still written as if shell tests were common, but y'all have been replacing them with ProcessTools and related libraries.

      I see:

      """
      Running a new Java virtual machine from within Java code

      This is not common. You should only consider doing this when you need to change the characteristics (JVM options) of the JVM that is currently in use. If you do need to start a child JVM, you may need to use the sun.boot.class.path property, so that the child JVM can inherit the bootclasspath you are using, including any additions to the bootclasspath specified by the user with the -Xbootclasspath/p: or -Xbootclasspath/a: options.
      """

      BUT:
      - This is not common ... NOT!
      - sun.boot.class.path has gone away
      -Xbootclasspath/p: has gone away

            cstein Christian Stein
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: