Forgot to calc stacksize for exception handlers.

git-svn-id: https://svn.code.sf.net/p/jode/code/branches/branch_1_1@1282 379699f6-c40d-0410-875b-85095c16579e
branch_1_1
hoenicke 24 years ago
parent 7548f53a75
commit 7eb1d3f8b5
  1. 10
      jode/jode/bytecode/BytecodeInfo.java.in

@ -949,6 +949,16 @@ public class BytecodeInfo extends BinaryInfo implements Opcodes {
todo.push(next);
}
}
for (int i=0; i< exceptionHandlers.length; i++) {
if (exceptionHandlers[i].start.compareTo(instr) <= 0
&& exceptionHandlers[i].end.compareTo(instr) >= 0) {
int catcher = exceptionHandlers[i].catcher.getAddr();
if (stackHeights[catcher] == -1) {
stackHeights[catcher] = 1;
todo.push(exceptionHandlers[i].catcher);
}
}
}
}
// System.err.println("New maxStack: "+maxStack+" Locals: "+maxLocals);
}

Loading…
Cancel
Save