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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 8u45
    • Component/s: core-libs
    • None
    • Environment:

      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.

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

                Created:
                Updated:
                Resolved: