Hello! After updating our codebase to Kotlin 2.0, ...
# getting-started
a
Hello! After updating our codebase to Kotlin 2.0, some of the methods that are using reflect started to fail, as the
Class<T>
produced is different. In Kotlin 1.9 the result is the one expected (
class A$B
) but when compiling against Kotlin 2.1 the result is
class java.lang.Object
. Has something changed? How can I get the output of 1.9? Thanks!
Using
@JvmSerializableLambda
will revert to the old behaviour. https://pl.kotl.in/3pLFZAxPT
a
That's it! Thank you!