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

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

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 18
    • 18
    • core-libs
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: