Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8367034 [REDO] Protect ExecuteWithLog from running with redirection without a subshell
  3. JDK-8367035

[BACKOUT] Protect ExecuteWithLog from running with redirection without a subshell

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P2 P2
    • 26
    • 26
    • infrastructure
    • None
    • 26
    • b15

      The fix does not handle command-lines with comma-seperated arguments, resulting in the following during the build:

      [2025-09-05T18:11:53,343Z] Usage: java [java options...] <application> [application arguments...]
      [2025-09-05T18:11:53,343Z]
      [2025-09-05T18:11:53,343Z] Where <application> is one of:
      [2025-09-05T18:11:53,343Z] <mainclass> to execute the main method of a compiled main class
      [2025-09-05T18:11:53,343Z] -jar <jarfile>.jar to execute the main class of a JAR archive
      [2025-09-05T18:11:53,343Z] -m <module>[/<mainclass>] to execute the main class of a module
      [2025-09-05T18:11:53,343Z] <sourcefile>.java to compile and execute a source-file program
      [2025-09-05T18:11:53,343Z]
      [2025-09-05T18:11:53,343Z] Where key java options include:
      [2025-09-05T18:11:53,343Z] --class-path <class path>
      [2025-09-05T18:11:53,343Z] where <class path> is a list of directories and JAR archives to search for class files, separated by ":"
      [2025-09-05T18:11:53,343Z] --module-path <module path>
      [2025-09-05T18:11:53,343Z] where <module path> is a list of directories and JAR archives to search for modules, separated by ":"
      [2025-09-05T18:11:53,343Z] -version
      [2025-09-05T18:11:53,343Z] to print product version to the error stream and exit
      [2025-09-05T18:11:53,343Z]
      [2025-09-05T18:11:53,343Z] For additional help on usage: java --help
      [2025-09-05T18:11:53,343Z] For an interactive Java environment: jshell

            dholmes David Holmes
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: