-
Bug
-
Resolution: Fixed
-
P3
-
asm_tools_7.0, asm_tools_8.0
-
None
$ /usr/lib/jvm/java-17-openjdk/bin/java -jar target/asmtools-8.0.b02-ea.jar jdis target/classes/org/openjdk/asmtools/common/Tool.class > ng
$ /usr/lib/jvm/java-17-openjdk/bin/java -jar target/asmtools-8.0.b02-ea.jar jdis -g target/classes/org/openjdk/asmtools/common/Tool.class > g
$ ll ng
-rw-rw-r--. 1 jvanek jvanek 6033 Aug 23 17:31 ng
$ ll g
-rw-rw-r--. 1 jvanek jvanek 16150 Aug 23 17:32 g
$ /usr/lib/jvm/java-17-openjdk/bin/java -jar target/asmtools-8.0.b02-ea.jar jasm ng #ok
$ /usr/lib/jvm/java-17-openjdk/bin/java -jar target/asmtools-8.0.b02-ea.jar jasm g
jasm - ERROR: begin 0, end -1, length 1
1 error(s)
$ /usr/lib/jvm/java-17-openjdk/bin/java -jar target/asmtools-8.0.b02-ea.jar jasm g -v
java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 1
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4604)
at java.base/java.lang.String.substring(String.java:2707)
at org.openjdk.asmtools.jasm.Parser.endClass(Parser.java:1977)
at org.openjdk.asmtools.jasm.Parser.parseClass(Parser.java:1462)
at org.openjdk.asmtools.jasm.Parser.parseFile(Parser.java:2169)
at org.openjdk.asmtools.jasm.Main.compile(Main.java:93)
at org.openjdk.asmtools.jasm.Main.main(Main.java:80)
at org.openjdk.asmtools.Main.jasm(Main.java:94)
at org.openjdk.asmtools.Main.main(Main.java:54)
jasm - ERROR: begin 0, end -1, length 1
1 error(s)
The method Parser.java::private void endClass() should be fixed
$ /usr/lib/jvm/java-17-openjdk/bin/java -jar target/asmtools-8.0.b02-ea.jar jdis -g target/classes/org/openjdk/asmtools/common/Tool.class > g
$ ll ng
-rw-rw-r--. 1 jvanek jvanek 6033 Aug 23 17:31 ng
$ ll g
-rw-rw-r--. 1 jvanek jvanek 16150 Aug 23 17:32 g
$ /usr/lib/jvm/java-17-openjdk/bin/java -jar target/asmtools-8.0.b02-ea.jar jasm ng #ok
$ /usr/lib/jvm/java-17-openjdk/bin/java -jar target/asmtools-8.0.b02-ea.jar jasm g
jasm - ERROR: begin 0, end -1, length 1
1 error(s)
$ /usr/lib/jvm/java-17-openjdk/bin/java -jar target/asmtools-8.0.b02-ea.jar jasm g -v
java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 1
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:4604)
at java.base/java.lang.String.substring(String.java:2707)
at org.openjdk.asmtools.jasm.Parser.endClass(Parser.java:1977)
at org.openjdk.asmtools.jasm.Parser.parseClass(Parser.java:1462)
at org.openjdk.asmtools.jasm.Parser.parseFile(Parser.java:2169)
at org.openjdk.asmtools.jasm.Main.compile(Main.java:93)
at org.openjdk.asmtools.jasm.Main.main(Main.java:80)
at org.openjdk.asmtools.Main.jasm(Main.java:94)
at org.openjdk.asmtools.Main.main(Main.java:54)
jasm - ERROR: begin 0, end -1, length 1
1 error(s)
The method Parser.java::private void endClass() should be fixed