mv.visitFieldInsn( Opcodes.GETFIELD,
className,
ShadowProxyFactory.DELEGATE_FIELD_NAME,
Type.getDescriptor( clazz ) );
if ( clazz.isInterface() ) {
mv.visitMethodInsn( Opcodes.INVOKEINTERFACE,
Type.getInternalName( clazz ),
method.getName(),
Type.getMethodDescriptor( method ) );
} else {
mv.visitMethodInsn( Opcodes.INVOKEVIRTUAL,