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

jjs "nashorn.args" system property is not effective when script arguments are passed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8u45
    • core-libs
    • None
    • Linux latitude 3.19.0-18-generic #18-Ubuntu SMP Tue May 19 18:31:35 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

    • b67
    • generic
    • linux_ubuntu

        Consider the following script:

        #!/usr/bin/jjs -J-Dnashorn.args=-strict -scripting -fv
        print('Hello');

        When executed without arguments, prints Nashorn full version string.
        When executed with arguments, does not print version string.

        $> ./temp.js
        nashorn full version 1.8.0_45-b14
        Hello
        $> ./temp.js --
        Hello
        $> ./tem.js -- foobar
        Hello

        Parameters are being ignored (-strict, -ot, -doe, etc...) when arguments are passed.

              sundar Sundararajan Athijegannathan
              bborges Bruno Borges (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: