Kotlin 1.6.20 arrives with better Java class interop
JetBrains has released Kotlin 1.6.20, a new release of the Kotlin language that features better interoperability with generic Java classes as well as faster build times. Some features cited in the release are still in preview form.Improved interoperability with generic Java classes and interfaces was enabled through the inclusion of definitely non-nullable types, a feature currently in a beta stage. Kotlin 1.6.20 allows developers to mark a generic type parameter as definitely non-nullable using the new syntax, T & Any. [ Also on InfoWorld: JDK 18: What’s new in Java 18 ] To improve build times, an experimental JVM IR back-end mode compiles all files in a module in parallel. This can reduce compilation time by as much as 15%. There are restraints to parallel compilation, however. More JVM heap is required and the capability does not work with kapt. Also in Kotlin 1.6.20, Kotlin/JS (JavaScript) development with the IR compiler has been made more efficient with a new incremental compilation mode.To read this article in full, please click here
JetBrains has released Kotlin 1.6.20, a new release of the Kotlin language that features better interoperability with generic Java classes as well as faster build times. Some features cited in the release are still in preview form.
Improved interoperability with generic Java classes and interfaces was enabled through the inclusion of definitely non-nullable types, a feature currently in a beta stage. Kotlin 1.6.20 allows developers to mark a generic type parameter as definitely non-nullable using the new syntax, T & Any
.
To improve build times, an experimental JVM IR back-end mode compiles all files in a module in parallel. This can reduce compilation time by as much as 15%. There are restraints to parallel compilation, however. More JVM heap is required and the capability does not work with kapt. Also in Kotlin 1.6.20, Kotlin/JS (JavaScript) development with the IR compiler has been made more efficient with a new incremental compilation mode.