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

streamline input parameter of Nashorn scripting $EXEC function

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • core-libs

        Nashorn's scripting mode supports $EXEC to run shell commands. The second argument to an invocation of $EXEC can be a string representing standard input. Currently, passing null or undefined will coerce these into strings, when they should logically represent "no input", as much as the empty string represents "empty input".

        An OutputStreamWriter is currently created to pass on standard input to the external process. This is even the case when there is no input, and should be avoided.

              mhaupt Michael Haupt
              mhaupt Michael Haupt
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: