Does Kotlin <method delegation> really break whene...
# announcements
p
Does Kotlin method delegation really break whenever a default implementation is added for a method of the delegated-to Java interface? Suddenly the default implementation instead of the delegate's implementation is called. As far as I can tell, my Kotlin code broke simply by updating to a new JDK version that adds default implementations to existing interfaces.
m
It’s a language design problem that’s yet to be resolved. https://youtrack.jetbrains.com/issue/KT-18324
p
Thanks, voted up. Probably safer not to use this language feature for now.
k
i have also found the way delegation interops with Java to be disappointing and opted to avoid using it