Package net.sf.cglib.proxy
Class BridgeMethodResolver
java.lang.Object
net.sf.cglib.proxy.BridgeMethodResolver
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.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFinds all bridge methods that are being called with invokespecial & returns them.
-
Field Details
-
declToBridge
-
classLoader
-
-
Constructor Details
-
BridgeMethodResolver
-
-
Method Details
-
resolveAll
Finds all bridge methods that are being called with invokespecial & returns them.
-