Rafael Winterhalter
Rafael Winterhalter
Apply `Advice` as a visitor: builder.visit(Advice.to(ClockInterceptor.class).on(ElementMatchers.named("instant"))
If you apply advice as a visitor, it simply decorates existing methods. The class file as such remains intact, however. If you apply it as an interceptor, it replaces the...
Yes, you override settings from `disableClassFormatChanges()` doing so. If the class is not loaded in JDK 8 before your agent gets active, it will work, but this you cannot rely...
I assume that the JDK did not load the Java class implicitly prior to the agent booting.
It seems like you are trying to initiate the same setup for the same class loader multiple times. You would need to reuse the previous setup, and only apply this...
This will no longer happen, as Byte Buddy already guards against the class not being available. You can however run with `-Dnet.bytebuddy.safe=true`. Are you using unsafe explicitly in your program...
Byte Buddy assumes that the iteration order is the same in Byte Buddy and the JVMs class file parser, so this is not an issue in this particular library.
I have not put a lot of effort into this strategy lately. It adjusts too much internal API and will stop to work in any future release. I would recommend...
I assume that the method call got intrinsified in some way and is excluded from instrumentation. Did you try adding a logger that shows you if the type is discovered?
Thanks! Glad it is useful to you. You can invoke a MethodCall on a different object, for example via a field. There's no way to copy s method, that's not...