Nashorn shebang argument handling fix broke no-argument case

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 8u60, 9
    • Component/s: core-libs
    • None

      The fix for JDK-8143642 broke the case where a shebang expression has no arguments at all, and no arguments are passed:

      #!/usr/local/bin/jjs
      print(23)

      Running this script without passing any arguments will break with an IndexOutOfBoundsException.

            Assignee:
            Michael Haupt
            Reporter:
            Michael Haupt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: