shark300
shark300
Are there any updates about this issue?
Hi @gsmet , thank you so much for your message. "I have to think a bit about it" To be honest I have already used a similar way to test...
Hi @gsmet, Do you have any updates regarding to this PR?
Happy birthday! 🎂 Aaaahhh, it is too late.
An other workaround: ``` List input = new ArrayList(); List output = new ArrayList(); List extractedToNewVariableGetCollectionResult = testCollectionSourceProvider.getCollection(input); given(extractedToNewVariableGetCollectionResult).willReturn(new ArrayList()); ``` _org.mockito.internal.stubbing.defaultanswers.ReturnsEmptyValues_ resolves _Collection_ type to a _LinkedList_ But I...
I've got same Exception on this machine: > java version "1.8.0_144" > Java(TM) SE Runtime Environment (build 1.8.0_144-b01) > Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode) > Java...
Have you tried Eclipse and Eclipse compiler in Idea? If I switch back to javac compiler, the test will be succeeded.
There is one difference on bytecode level between javac and Eclipse compiler. Javac: ``` public test()V @Lorg/junit/Test;() L0 LINENUMBER 25 L0 ALOAD 0 GETFIELD com/example/demo/FailingTestWithCollectionsTest.testCollectionSourceProvider : Lcom/example/demo/FailingTestWithCollectionsTest$TestCollectionSourceProvider; NEW java/util/ArrayList DUP...
@TimvdLippe > As such, this is not only an issue with the Eclipse compiler in IntelliJ I agree with you. I've tested localy with JDK9 and test was failed because...
If I understood documentation of Java virtual machine correctly in this case there is an INVOKESPECIAL and erased type before INVOKEVIRTUAL. As I see there is no general solution because...