Rafael Winterhalter
Rafael Winterhalter
Within net.bytebuddy package. That's probably another shade.
Seems like the target does not get rewritten properly, I will have a look!
Sorry for the slow response, new baby makes me little productive these weeks. I'll have a look soon.
I think we are considering two different things here. I'd suggest to apply the substitution on top of the advice, I think you are instrumenting the advice itself before applying...
Yes, it's still on the agenda. I have looked into it briefly but I want to plug a member substitution eventually which did not fit together well yet. But I...
You would need to register a `ClassVisitor` via `AsmVisitorWrapper` in the builder's `visit` method. From there, you need to return `null` for the `` method, this way it will be...
If the class is already loaded, it cannot be redefined anymore. This is a general restriction. If you wanted to avoid this, you would need to register a Java agent...
This is not currently possible but might be a valuable extension. I think I could include an API that allows to chain `Advice` using something like `Advice.to(...).andThen(Advice.to(...)).on(...)` where the `@Local`...
Yes, this is the right approach. Alternatively, you can register a `ByteCodeAppender` via the `DynamicType.Builder.initializer` method which is not representing a unique match.
You'd need a matcher for the type (assuming you are using an agent builder) and then match the method. If you know the names, you can match both by name.