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

exclude jjs shebang handling test from runs

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, 9
    • Fix Version/s: 9
    • Component/s: core-libs

      Backports

        Description

        The shebang test introduced with JDK-8144221 fails occasionally on Linux and Solaris. This is not a problem with the test or functionality it covers, but with the fact that some OS platforms impose an upper boundary on the length of shebang lines. If the path to the jjs executable is too long, the line will be truncated, leading to arguments being processed in the wrong way.

        The test will be moved to the currently-failing directory but should still be run manually, especially if changes around jjs and scripting are applied.

          Issue Links

            Activity

            Hide
            mhaupt Michael Haupt added a comment -
            The failure manifests in manual runs by jjs claiming to have received an unknown option, e.g., like shown below. The unrecognised option "-script" is in fact a truncated "-scripting".

            <<< --language=es6 -scripting >>>
            * noargs via shebang

            jjs [<options>] <files> [-- <arguments>]
            "-script" is not a recognized option. Use "-h" or "-help" to see a list of all supported options.
            * noargs via jjs
            S:

            * withargs via shebang

            jjs [<options>] <files> [-- <arguments>]
            "-script" is not a recognized option. Use "-h" or "-help" to see a list of all supported options.
            * withargs via jjs
            S:a.js,hello world
            Show
            mhaupt Michael Haupt added a comment - The failure manifests in manual runs by jjs claiming to have received an unknown option, e.g., like shown below. The unrecognised option "-script" is in fact a truncated "-scripting". <<< --language=es6 -scripting >>> * noargs via shebang jjs [<options>] <files> [-- <arguments>] "-script" is not a recognized option. Use "-h" or "-help" to see a list of all supported options. * noargs via jjs S: * withargs via shebang jjs [<options>] <files> [-- <arguments>] "-script" is not a recognized option. Use "-h" or "-help" to see a list of all supported options. * withargs via jjs S:a.js,hello world
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/141d0cf2c12e
            User: mhaupt
            Date: 2016-05-20 14:02:49 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/nashorn/rev/141d0cf2c12e User: mhaupt Date: 2016-05-20 14:02:49 +0000
            Hide
            hgupdate HG Updates added a comment -
            URL: http://hg.openjdk.java.net/jdk9/jdk9/nashorn/rev/141d0cf2c12e
            User: lana
            Date: 2016-05-25 17:36:18 +0000
            Show
            hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/nashorn/rev/141d0cf2c12e User: lana Date: 2016-05-25 17:36:18 +0000

              People

              • Assignee:
                mhaupt Michael Haupt
                Reporter:
                mhaupt Michael Haupt
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: