Rafael Winterhalter

Results 738 comments of Rafael Winterhalter

Yeah, I have been experimenting a bit with better DSLs but the complexity quickly explodes, so I am always wondering if a custom built `StackManipulation` is not an easier option...

Exactly. It really depends on how dynamic you want those things to be. You can create a custom implementation and resolve names and properties from each instrumented method. Or you...

You could just use `builder.defineProperty("foo", String.class)` what will create corresponding setters or getters. The idea with the interface is meant for cases where you want to set a specific field,...

Could you set a breakpoint in the `getDeclaredAnnotations` method where the exception is thrown? I assume that the JVM has some sort of mismatch between the annotation array and the...

Could you elaborate on this question?

From an interceptor? You can use the `@Origin` annotation for a `Class` type.

If you want to inspect the class file, it will be part of the created DynamicType.

Thanks, glad you like it. Member removal is unfortunately not supported overly well. You'd need to register a `AsmClassVisitorWrapper` and override the `visitAnnotation` method to return `null` if such an...

So, if you wanted to avoid the visitor, you can set `AnnotationRetention.DISABLED` in `ByteBuddy` and apply a `Transformer` in the method to change the method in question by replacing the...

Yes, absolutely. If your replacement is that simple, then using ASM is the best option!