-
Bug
-
Resolution: Fixed
-
P2
-
9
-
b159
-
generic
-
generic
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8176639 | 10 | Claes Redestad | P2 | Resolved | Fixed | b03 |
The following command causes a failure:
% jimage list ''
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:45)
at java.base/java.lang.String.charAt(String.java:704)
at jdk.jlink/jdk.tools.jlink.internal.TaskHelper$OptionsHelper.handleOptions(TaskHelper.java:530)
at jdk.jlink/jdk.tools.jlink.internal.TaskHelper$OptionsHelper.handleOptions(TaskHelper.java:482)
at jdk.jlink/jdk.tools.jimage.JImageTask.run(JImageTask.java:174)
at jdk.jlink/jdk.tools.jimage.Main.main(Main.java:34)
If the last argument is omitted the correct message appears:
% jimage list
Error: no jimage provided
The issue affects all jimage commands: info, list, extract, verify.
Tested on the latest jigsaw and jdk 9-ea+144.
% jimage list ''
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.base/java.lang.StringLatin1.charAt(StringLatin1.java:45)
at java.base/java.lang.String.charAt(String.java:704)
at jdk.jlink/jdk.tools.jlink.internal.TaskHelper$OptionsHelper.handleOptions(TaskHelper.java:530)
at jdk.jlink/jdk.tools.jlink.internal.TaskHelper$OptionsHelper.handleOptions(TaskHelper.java:482)
at jdk.jlink/jdk.tools.jimage.JImageTask.run(JImageTask.java:174)
at jdk.jlink/jdk.tools.jimage.Main.main(Main.java:34)
If the last argument is omitted the correct message appears:
% jimage list
Error: no jimage provided
The issue affects all jimage commands: info, list, extract, verify.
Tested on the latest jigsaw and jdk 9-ea+144.
- backported by
-
JDK-8176639 jimage fails with StringIndexOutOfBoundsException when path to the inspected image is an empty string
- Resolved
- duplicates
-
JDK-8170076 3 tools/jimage/ tests fails with StringIndexOutOfBoundsException
- Closed
- relates to
-
JDK-8170120 jimage throws IOException when the given file is not a jimage file
- Resolved
-
JDK-8170112 Problem list failing jimage tests until JDK-8169713 is fixed
- Closed