upgrade asm api to Opcodes.ASM7. #459 #425

This commit is contained in:
hengyunabc 2019-01-18 15:57:22 +08:00
parent 6ecc035a6d
commit b80698becb

View File

@ -355,7 +355,7 @@ public class AdviceWeaver extends ClassVisitor implements Opcodes {
* @param cv ClassVisitor for ASM
*/
public AdviceWeaver(int adviceId, boolean isTracing, boolean skipJDKTrace, String className, Matcher matcher, EnhancerAffect affect, ClassVisitor cv) {
super(ASM5, cv);
super(Opcodes.ASM7, cv);
this.adviceId = adviceId;
this.isTracing = isTracing;
this.skipJDKTrace = skipJDKTrace;
@ -410,7 +410,7 @@ public class AdviceWeaver extends ClassVisitor implements Opcodes {
// 编织方法计数
affect.mCnt(1);
return new AdviceAdapter(ASM5, new JSRInlinerAdapter(mv, access, name, desc, signature, exceptions), access, name, desc) {
return new AdviceAdapter(Opcodes.ASM7, new JSRInlinerAdapter(mv, access, name, desc, signature, exceptions), access, name, desc) {
// -- Label for try...catch block
private final Label beginLabel = new Label();