I have an interface MyInterface
in Kotlin with some methods that some of them have a default implementation. Also, I have another interface IClass
that extends MyInterface
written in Java. At last, I have a class MyClass
that implements MyInteface
written in Kotlin. Now when I run my code, I got the following error.
java.lang.ClassNotFoundException: myPackage.IClass$DefaultImpls
I test both Kotlin 1.2.51 and 1.3.0
When I write IClass in Kotlin, everything works as expected. What's wrong with my first code?