Rafael Winterhalter
Rafael Winterhalter
To update? I assume in your build setup somewhere.
As pointed out, the code is more or less copy pasted. You can change this if you set `inline = false` by delegation. But you are responsible to make sure...
This is because final strings (and primitives) are inlined. The field access is eliminated by javac.
Shouldn't you specify that the real method should be invoked?
Have you tried removing the map and write three wxplicit benchmarks?
One would need to dig down here, but I'd assume there's a volatile field involved or the like. I don't know the easy mock implenentation, but is it subclass based?
I love the charity concept as I already donate money and this is a tax efficient extension to it. @mockitoguy Should we setup a proposal?
I assume it is related to class loaders defining the same class multiple times? They would yield identical mocks. During collection those mocks are given identical names aa a result...
Likely a good idea. But probably in a separate PR?
I have tried a simple sample: public static void main(String[] args) { String property = System.getProperty("java.version"); System.out.println(property); SubClass mock = mock(SubClass.class); when(mock.test()).thenCallRealMethod(); System.out.println(mock.test()); } public static class SubClass implements DefaultMethodSample...