Good morning! I was wondering, is there a page/ticket/something else tracking the efforts to make Kotlin compatible with Java 16?
i
ilya.gorbunov
04/15/2021, 7:32 AM
Yes, some known incompatibility problems were fixed in the coming Kotlin 1.5
➕ 1
m
Michael Böiers
04/15/2021, 8:15 AM
I’ve recently introduced Kotlin (1.4.32) in a Java 11 project and we now wanted to upgrade to Java 16. It doesn’t work yet for other reasons (maven plugins, jacoco etc.), but it would be good to know when Kotlin will be interoperable with Java 16 (like able to access Java 16 records properly).
Ah - I had already seen that issue, but it’s about generating records from Kotlin, which is not what I meant. The information I was looking for is contained in one easily glossed-over sentence in the ticket: “You can use record classes that are declared in Java just like classes with properties in Kotlin. No additional steps are required.” 🙂
Michael Böiers
04/15/2021, 9:03 AM
I had read somewhere that this isn’t already possible, because Java records don’t follow the standard getter naming convention. I guess that info was outdated.