Details
-
Type:
Bug
-
Status: Closed
-
Priority:
P3
-
Resolution: Duplicate
-
Affects Version/s: 8u60, 9
-
Fix Version/s: None
-
Component/s: core-libs
-
Labels:None
-
Subcomponent:
Description
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.
#!/usr/local/bin/jjs
print(23)
Running this script without passing any arguments will break with an IndexOutOfBoundsException.
Attachments
Issue Links
- duplicates
-
JDK-8143642 Nashorn shebang argument handling is broken
-
- Resolved
-
- relates to
-
JDK-8143642 Nashorn shebang argument handling is broken
-
- Resolved
-
-
JDK-8144221 fix Nashorn shebang argument handling on Mac/Linux
-
- Resolved
-