Rafael Winterhalter

Results 738 comments of Rafael Winterhalter

Could you use Byte Buddy's print writing listener or change yours to showcase if this was a successful or a failed transformation? Maybe it was even ignored. I recommend using...

You would need to add *byte-buddy-android* and use the `AndroidClassLoadingStrategy` as second argument to `load` for this to work.

You are right, this would be a useful feature. I can see if I can add it.

Looking at it, I now remember why this is not an option. Annotations are visited by their descriptor and only then it is possible to abort the writing, before paring...

Well, it's more complicated then that. For example, you could not override `getCode` from `ExampleJavaClass` without specifying the path downwards: public static class ExampleJavaClass implements Trait1, Trait2 { @Override public...

You can use Origin on a method handle parameter. The handle should have the correct privilege for invocation etc.

Yes, but it likely needs to be updated.

Yes, but the `ClassInjector` in question does not work on Java 17 anymore. It would need to resolve another injector for this platform, such as `ClassInjector.UsingUnsafe`. This is something the...

Yes, before 9, Unsafe is the only option. From 17, handles are the only option.

Byte Buddy adjusts its support based on the VM being used. You can check `ClassFileVersion.ofCurrentVm()` to see what Java version you are running and choose a strategy accordingly.