Fix LVT resolution with compressed frames and two related minor bugs

This commit is contained in:
Mumfrey committed 2019-10-11 17:59:53 +01:00
1 parent b8638b2340
commit 22ae7dd1f9
3 files changed
+175 -15

No files matched your search

@@ -390,8 +390,9 @@ public final class Bytecode {
*/
public static void printMethod(MethodNode method) {
System.err.printf("%s%s\n", method.name, method.desc);
int index = 0;
for (Iterator<AbstractInsnNode> iter = method.instructions.iterator(); iter.hasNext();) {
System.err.print(" ");
System.err.printf("%-4d ", index++);
Bytecode.printNode(iter.next());
}
}
@@ -1216,4 +1217,5 @@ public final class Bytecode {
destination.addAll(source);
return destination;
}
}