Improve stack and local extension logic for injectors, fixes #368

This commit is contained in:
Mumfrey committed 2019-10-12 16:46:19 +01:00
1 parent fa94ab4b31
commit ac01029add
11 files changed
+235 -50

No files matched your search

@@ -388,7 +388,7 @@ public final class Bytecode {
* @param method Method to print
*/
public static void printMethod(MethodNode method) {
System.err.printf("%s%s\n", method.name, method.desc);
System.err.printf("%s%s maxStack=%d maxLocals=%d\n", method.name, method.desc, method.maxStack, method.maxLocals);
int index = 0;
for (Iterator<AbstractInsnNode> iter = method.instructions.iterator(); iter.hasNext();) {
System.err.printf("%-4d ", index++);