|
37 | 37 |
|
38 | 38 | import org.apache.aries.proxy.InvocationListener;
|
39 | 39 | import org.apache.aries.proxy.UnableToProxyException;
|
| 40 | +import org.apache.aries.proxy.impl.AsmApiVersion; |
40 | 41 | import org.apache.aries.proxy.impl.SystemModuleClassLoader;
|
41 | 42 | import org.apache.aries.proxy.impl.gen.Constants;
|
42 | 43 | import org.apache.aries.proxy.weaving.WovenProxy;
|
@@ -210,7 +211,7 @@ public abstract class AbstractWovenProxyAdapter extends ClassVisitor implements
|
210 | 211 | */
|
211 | 212 | public AbstractWovenProxyAdapter(ClassVisitor writer, String className,
|
212 | 213 | ClassLoader loader) {
|
213 |
| - super(Opcodes.ASM9, writer); |
| 214 | + super(AsmApiVersion.apiVersion, writer); |
214 | 215 | typeBeingWoven = Type.getType("L" + className.replace('.', '/') + ";");
|
215 | 216 | //By default we expect to see methods from a concrete class
|
216 | 217 | currentMethodDeclaringType = typeBeingWoven;
|
@@ -365,7 +366,7 @@ public final MethodVisitor visitMethod(int access, String name, String desc,
|
365 | 366 | //to write our init code to static_init_UUID instead
|
366 | 367 | staticInitMethod = new Method("static_init_" + UU_ID, Type.VOID_TYPE, NO_ARGS);
|
367 | 368 | staticInitMethodFlags = staticInitMethodFlags | ACC_FINAL;
|
368 |
| - methodVisitorToReturn = new AdviceAdapter(Opcodes.ASM9, cv.visitMethod(access, name, desc, signature, |
| 369 | + methodVisitorToReturn = new AdviceAdapter(AsmApiVersion.apiVersion, cv.visitMethod(access, name, desc, signature, |
369 | 370 | exceptions), access, name, desc){
|
370 | 371 | @Override
|
371 | 372 | protected void onMethodEnter()
|
|
0 commit comments