类 Enhancer.BridgeMethodResolver
java.lang.Object
cn.taketoday.bytecode.proxy.Enhancer.BridgeMethodResolver
- 封闭类:
- Enhancer
Uses bytecode reflection to figure out the targets of all bridge methods that
use invokespecial and invokeinterface, so that we can later rewrite them to
use invokevirtual.
For interface bridges, using invokesuper will fail since the method being bridged to is in a superinterface, not a superclass. Starting in Java 8, javac emits default bridge methods in interfaces, which use invokeinterface to bridge to the target method.
- 作者:
- sberlin@gmail.com (Sam Berlin)
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Map<MethodSignature,MethodSignature> resolve(Map<Class<?>, Set<MethodSignature>> declToBridge) Finds all bridge methods that are being called with invokespecial & returns them.
-
构造器详细资料
-
BridgeMethodResolver
protected BridgeMethodResolver()
-
-
方法详细资料
-
resolve
public static Map<MethodSignature,MethodSignature> resolve(Map<Class<?>, Set<MethodSignature>> declToBridge) Finds all bridge methods that are being called with invokespecial & returns them.
-