Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8276408

Deprecate Runtime.exec methods with a single string command line argument

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b23

      Description

      The three methods of java.lang.Runtime that accept a single command line string and break it into arguments should be deprecated.
      The tokenization uses only whitespace characters, ignoring quote characters.
      It is error prone because it is quotes may appear in the string but are ignored.
      The recommendation is to use the corresponding methods of Runtime that take an array of string arguments.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rriggs Roger Riggs
              Reporter:
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: