Rafael Winterhalter
Rafael Winterhalter
Unfortunately, no, unless within the Hibernate build. Build plugins can only transform your own classes.
So, I believe that Mokk's advice templates use class constants of the sort `Some.class`. Those constants were only introduced in Java 5 and `SessionDescription` is a version 4 class file....
I just mark the version this question applies to. This needs to be fixed in Mockk.
The installation is a very expensive operation in itself, unfortunately. It often requires a stop the world with full garbage collection. It is especially expensive since Java 9 where Byte...
Just some general feedback: advice instances are immutable and very expensive. Dont create them for each transformation. Your synchronized maps will also slow things down significantly.
If you subclass and retransform, you can pretty much sum up up the numbers for both on the Mockito side and that seems right, too. Retransformation is expensive as it...
Instrumentation is a very expensive feature. Byte Buddy needs to jump through some hoops to get it done. You can try to add byte-buddy-agent as a Java agent on the...
It would be interesting to attach a profiler to both Mockk and the Mockito runs to see what the time is spent on.
Of course, newer Java versions tend to be faster as they do more initialization lazier. Generally, absolute benchmark numbers are seldom meaningful, just comparison numbers of the same run; therefore...
The problem is that Byte Buddy points to named methods in annotations to resolve reflective access. This seems to be broken by the obfuscation.