Rafael Winterhalter

Results 738 comments of Rafael Winterhalter

You are requesting a Method which cannot represent a Constructor. Rather use an Executable, or create two advices and match them accordingly.

It's the instrumentation API that catches the exception. Byte Buddy cannot do anything here. You can however register a listener and get the exception from there. You would then need...

The NoClassDefFoundError might be misleading and point to an error in your instrumentation. It could be a erification error in disguise. Are you instrumenting your code using Byte Buddy? I...

You can still use ASM with Byte Buddy in this case, have a look at AsmVisitorWrapper.ForDeclaredMethods. you can register frame computation in there and still use ASM for the method...

Yes, please! Could you do a PR on the gh-pages branch with a suggestion?

No worries, if I find time first, I will do it, otherwise, I can easily just merge your PR.

In what context? Byte Buddy follows the toString conventions of the JVM but has additional methods for names. See for example, getActualName().

This is currently not possible, but I would like to add it sometime. The problems I face are as follows: - The stack might not be empty at this point...

There's `@Advice.FieldValue` that can already bind a field. Have you tried using that?

In this case, you would need to register your own OffsetBinding and resolve a field value dynamically. Have a look at the existing offset bindings for an example.