Rafael Winterhalter

Results 738 comments of Rafael Winterhalter

Records can contain methods, I would not see why we would make an exception.

Must be something wrong with the type path of the first. Might even be in the JDK. I'll look into it!

Interesting enough, this simple line of code fails: Instrumentation inst ByteBuddyAgent.install(); inst.retransformClasses(RecordA.class); The second line causes the exception. It seems like the JVM does not like the annotations to begin...

Registered in OpenJDK: https://bugs.openjdk.org/browse/JDK-8315575

It's incorrectly closed. We cannot do anything about it.

Yes, this is sealing off the last possibility of breaking modularity which is required for mock creation. After some time, Mockito will stop working in production systems, what is a...

One idea would be if tools like Maven could add an "agent" option to their dependency definition. This way Mockito could be declared there and it would be very explicit...

While it is possible to implement this in a build tool, it is also rather impractical. Quite obviously, Mockito is popular and there is a real world use case for...

This is a concern mostly when running tests, so in theory, you are right that this can be solved differently. But it is not that easy in practice. Normally a...

That is certainly something we are pursuing, but it would make migration forward much easier if there was a static command line argument, is what I am saying. And currently...