I have been start to play with 2.0.0-MR3 and I exp...
# k2-adopters
l
I have been start to play with 2.0.0-MR3 and I experiencing strange behavior of the code We have a relatively large serverside kotlin codebase. After fixing compilation errors (seems like the new compiler is stricter), it seems like a lot of unit tests start to fail with : Are there any known issues with kotlin.Unit in 2.0 ? Will be happy to get pointers to how to continue investigation
Copy code
org.opentest4j.AssertionFailedError: Unexpected exception thrown: java.lang.ClassCastException: class java.lang.Object cannot be cast to class kotlin.Unit (java.lang.Object is in module java.base of loader 'bootstrap'; kotlin.Unit is in unnamed module of loader 'app')
        at app//org.junit.jupiter.api.AssertDoesNotThrow.createAssertionFailedError(AssertDoesNotThrow.java:83)
        at app//org.junit.jupiter.api.AssertDoesNotThrow.assertDoesNotThrow(AssertDoesNotThrow.java:76)
        at app//org.junit.jupiter.api.AssertDoesNotThrow.assertDoesNotThrow(AssertDoesNotThrow.java:59)
        at app//org.junit.jupiter.api.Assertions.assertDoesNotThrow(Assertions.java:3195)
m
The case seems new, please try to create a YT issue with short example of exception-provoking code