Rafael Winterhalter
Rafael Winterhalter
Byte Buddy has a build plugin. In theory, you can preproduce classes and use them. This is what I do with Byte Buddy and Mockito on Graal images what is...
https://github.com/raphw/byte-buddy/tree/master/byte-buddy-maven-plugin https://github.com/raphw/byte-buddy/tree/master/byte-buddy-gradle-plugin
Why would you need ByteBuddy for this? Simply register a `ClassFileTransformer` and return the byte array you want to replace.
Java 22 is supported in the latest version. You would need to ask the library for an update.
Quite honestly, this looks like a JVM bug to me that is related to `AllowRedefinitionToAddDeleteMethods`. On the long run you need to find a way around this option as it...
This is indeed overseen. The return type is also possibly an unresolved recursive. Will be fixed in the next release.
I agree with (1) and already added the property to the exception. (4) should come implicit with that as Byte Buddy controls the output within the `Attacher` main method. I...
You want to use `setsField`, not `onField`. Also, you likely want to make the constructor public in `defineConstructor`.
Create a latent field description and supply it.
If any of your instrumentations requires dispatch to an object, it is required. But normally it is not. I will see if I can change it to detect this automatically....