For most use cases, unicast ports do not need to be explicitly configured. However, solutions that relied on the previous default ports need to be updated accordingly. Unicast ports that are explicitly configured are still used. Unicast Ports are now automatically selected. See Specifying a Cluster's Multicast Address and Port in Developing Applications with Oracle Coherence. However, solutions that rely on the previous defaults need to be updated to use the new defaults. Addresses and ports that are explicitly configured are still used. The enhancements include:Ĭoherence now uses port 7574 as the default cluster port for multicast communication and 239.192.0.0 as the default address. In this example, declaring EndOfFile as a data object instead of a plain object means that it automatically has a toString() function without the need to override it manually.Significant enhancements have been made to simplify the way Coherence addresses and ports are configured and may require updates to your solution. This feature is particularly useful with sealed hierarchies (like a sealed class or sealed interface hierarchy), because data object declarations can be used conveniently alongside data class declarations. This includes the functions added for symmetry with data classes: toString(), equals(), and hashCode(). Stable data objects for symmetry with data classesĭata object declarations, which were introduced in Kotlin 1.8.20, are now Stable. The values() function is still supported, but we recommend that you use the entries property instead.Įnum class Color(val colorName: String, val rgb: String) įor more information about the entries property for enum classes, see What's new in Kotlin 1.8.20. In 1.9.0, the entries property is Stable. The entries property is a modern and performant replacement for the synthetic values() function. In 1.8.20, the entries property for enum classes was introduced as an Experimental feature. Stable replacement of the enum class values function Support for secondary constructors with bodies in inline value classes Replacement of the enum class values function In Kotlin 1.9.0, we're stabilizing some new language features that were introduced earlier: Report any problems you've faced with the new K2 compiler on our issue tracker.Įnable the Send usage statistics option to allow JetBrains to collect anonymous data about K2 usage. Provide your feedback directly to K2 developers Kotlin's Slack – get an invite and join the #k2-early-adopters channel. We'd appreciate any feedback you may have! Leave your feedback on the new K2 compiler Update the Gradle version in your project to 8.3 when it becomes available. Starting with 1.9.0 and until the release of Kotlin 2.0, you can easily test the K2 compiler by adding the 2=true Gradle property to your gradle.properties file. If you encounter any issues when using kapt with the K2 compiler, please report them to our issue tracker. All other compilation tasks will continue to utilize the new K2 compiler. These checks are exclusively disabled for kapt tasks. This behavior is equivalent to including the following command arguments: If you execute the kapt compiler plugin within a project where languageVersion is set to 2.0, kapt will automatically switch to 1.9 and disable specific version compatibility checks. Despite setting languageVersion to 2.0, the kapt compiler plugin still utilizes the old compiler. You can use the kapt plugin in your project along with the K2 compiler, but with some restrictions. Compatibility of the kapt compiler plugin with the K2 compiler There's now also basic support for Kotlin/Native and multiplatform projects. The K2 compiler for the JVM is now in Beta. The Kotlin team at JetBrains continues to stabilize the K2 compiler, and the 1.9.0 release introduces further advancements. To download Kotlin artifacts and dependencies, configure your Gradle settings to use the Maven Central Repository. The Kotlin 1.9.0 plugin will be included with IntelliJ IDEA 2023.2 in the upcoming releases. *The Kotlin 1.9.0 plugin will be included with Android Studio Giraffe (223) and Hedgehog (231) in their upcoming releases.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |