https://kotlinlang.org logo
#announcements
Title
# announcements
c

czyzby

08/15/2017, 11:03 AM
This Mockito error has not occurred when using
1.1.3-2
(or earlier versions, for that matter). It seems that the
1.1.4
compiler does something unusual with the bytecode. Notice the warning:
Copy code
Byte Buddy could not instrument all classes within the mock's type hierarchy

This problem should never occur for javac-compiled classes. This problem has been observed for classes that are:
 - Compiled by older versions of scalac
 - Classes that are part of the Android distribution
e

elizarov

08/15/2017, 12:12 PM
The compilation strategy for named suspending function has changed and the resulting bytecode is causing problems with ByteBuddy. See discussion here: https://github.com/mockito/mockito/issues/1152
k

kevinherron

08/24/2017, 4:36 PM
Is this definitely a Mockito bug then? Do I just need to disable these tests until a Mockito version with a fix is available?
or stay on Kotlin 1.1.3