Intercept and Call Original Method #1648
Unanswered
marinofernandes
asked this question in
Q&A
Replies: 2 comments 1 reply
-
You are likely looking for |
Beta Was this translation helpful? Give feedback.
1 reply
-
I see now that you are using reloading. This brings some limitations. Have a look at AgentBuilder which allows you to register a listener to class loading which applied the transformation prior. Alternatively, have a look at Advice over Method delegation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm trying to intercept a method call and then call the original code. However, when I add @supercall Callable<?> call to the intercepted method, I get the following exception:
Exception java.lang.IllegalArgumentException: None of [public static void ByteBuddyTest$Interceptor.enter(java.lang.Object[],ByteBuddyTest$MyClass,java.util.concurrent.Callable)] allows for delegation from public void ByteBuddyTest$MyClass.sayHello(java.lang.Object)
Do you know what am I missing in this code?
}
`
Beta Was this translation helpful? Give feedback.
All reactions