JDK-8157444 : exclude jjs shebang handling test from runs
  • Type: Bug
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 8,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-05-20
  • Updated: 2016-10-13
  • Resolved: 2016-05-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u112Fixed 9 b120Fixed
Related Reports
Relates :  
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.
Comments
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
20-05-2016