Rafael Winterhalter

Results 738 comments of Rafael Winterhalter

I see the ticket has been closed: https://bugs.openjdk.org/browse/JDK-8288334

Yes, I saw that. Let me think about this some more time. I did not really believe jar size would be a real issue since we are speaking of single...

To do this, you would need to delegate to a field instead. MethodDelegation offsets this and you can make the field static if appropriate. For this field, you can use...

You'd: `MethodDelegation.toField("myInterceptor")` and also `defineField` in the DSL.

There's no way for this. If you want to add code to the beginning of the method, you can avoid referencing ClassA in your interceptor and use andThen with SuperMethodCall.

The OpenTelemetry agent likely appends the boot loader with additional types, and those types cannot be resolved by a class loader as their class file is not available. Basically, you...

The main issue is that Mockito is not supposed to be in the system class loader to begin with, but this is a by-product of adding the javaagent parameter. Appending...

Indeed. Would you consider the last option and have your own agent that invokes Mockito's premain. @TimvdLippe Maybe we should make the warning suppressable?

We do currently print the warning even if the Byte Buddy agent is installed on the command line: https://github.com/mockito/mockito/blob/72dcfa459aa7525b98163aa225e8a47af7029c5e/src/main/java/org/mockito/internal/util/reflection/InstrumentationMemberAccessor.java#L53 Byte Buddy only falls back to dynamic attach. Maybe we should...

Agreed. This implements the change: https://github.com/mockito/mockito/pull/3459