Rafael Winterhalter

Results 738 comments of Rafael Winterhalter

The name is something that is mandatory and is provided to the bootstrap method. You have to set a name, but can ignore it. Often the empty string is used...

You need to create a custom factory of `net.bytebuddy.asm.Advice.OffsetMapping.ForDynamicConstant`. The additional arguments can be provided as `arguments`. You return this instance from `OffsetMapping.Factory`.

That is why this approach is discouraged. Rather use the method as a basis and inject a method handle, for example. What are you trying to achieve? Do you need...

In this case you might be able to use `Super.Instantiation.CONSTRUCTOR`? As long as the constructor does not do any method calls on the supplied objects, or any other input checks,...

You need to set the `constructorParameters` property on the `@Super` annotation for this. This property is needed to identify the constructor that you want to call. It needs to resemble...

That is right, but the proxy type cannot be variable either. What type do you use before `@Super`?

I see. I will have to add a dynamic resolver for this. That is not much work, so I can add it to the next version.

You can now specifiy a `constructorResolver` property on the annotation to resolve the annotation dynamically.