ASM look at maxStack before instructions?
问题 I'm trying to use the ASM library to translate byte code into a different format, which can be done with a MethodVisitor, as with this simple test code: return new MethodVisitor(ASM7) { @Override public void visitInsn(int opcode) { System.out.println(String.format("%02x", opcode)); } @Override public void visitMaxs(int maxStack, int maxLocals) { System.out.println(maxStack); } }; One issue is that I only get to see maxStack after the actual instructions – I've tested it, and that is the order