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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u45
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      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

    • Subcomponent:
    • Resolved In Build:
      b67
    • CPU:
      generic
    • OS:
      linux_ubuntu

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: