Local variables not processed after jump instruction in AnalyzerAdapter
On visiting jump instruction AnalyzerAdapter resets locals and stack
so after processing "if () {...} else {...}" statement no any local is
processed and maxLocals info not updated:
public void visitJumpInsn(final int opcode, final Label label) {
if (mv != null) {
mv.visitJumpInsn(opcode, label);
}
execute(opcode, 0, null);
if (opcode == Opcodes.GOTO) {
this.locals = null;
this.stack = null;
}
}
NB: Is it any other possibilites to calc maxLocals?