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

pull/470/head
hengyunabc 6 years ago
parent 6ecc035a6d
commit b80698becb

@ -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();

Loading…
Cancel
Save