github JetBrains/kotlin v1.5.30-RC
Kotlin 1.5.30-RC

latest releases: build-2.1.20-dev-197, build-2.1.20-dev-194, build-2.1.20-dev-165...
pre-release3 years ago

Changelog

Backend. Native. Debug

  • KT-47405 Incorrect path from inlined method in stacktrace on iOS-simulator ARM64
  • KT-47408 Incorrect line number of inlined method on iOS-simulator ARM64

Compiler

New Features

  • KT-47709 Make when statements with enum, sealed, and Boolean subjects exhaustive by default
  • KT-47699 Support programmatic creation of class annotations and corresponding feature flag on JVM

Performance Improvements

  • KT-47785 Compilation time increased when trying to compile AssertJ DB expression in 1.5.21

Fixes

  • KT-47941 "IllegalStateException: Expected some types" on a call with several excepted type constraints
  • KT-47854 "IllegalArgumentException: Type is inconsistent" with Android's @nullable annotation starting in Kotlin 1.5.20
  • KT-47899 "AssertionError: Intersection type should not be marked nullable" with 1.5.21
  • KT-47846 Stack overflow when handling enhanced recursive type parameter
  • KT-47747 Introduce specific error for calls which could be resolved only with unrestricted builder inference
  • KT-47739 JVM / IR: NoSuchFieldError with generic sealed classes
  • KT-47422 -Xjspecify-annotations: If a class has a @nullable type-parameter bound, Kotlin should still treat some users' type arguments as platform types
  • KT-47437 Type inference failure with raw types under -Xjspecify-annotations=strict
  • KT-47396 <?> in @NullMarked code should permit nullable types
  • KT-47729 False positive INTEGER_OPERATOR_RESOLVE_WILL_CHANGE warning: "expression will be resolved to Int in future releases"
  • KT-47333 Xcode 13: Compilation for iOS simulator fails
  • KT-47772 False negative WRONG_ANNOTATION_TARGET on type argument to function call
  • KT-47467 JVM / IR: "AssertionError: Annotation class expected: deserialized class Array" caused by java annotation as a parameter of another annotation
  • KT-47744 UninitializedPropertyAccessException compiler exception on nested builder inference calls
  • KT-47724 Type inference: False positive "Returning type parameter has been inferred to Nothing implicitly"
  • KT-47660 JVM / IR: Mockito verification fails when named parameters are ordered differently
  • KT-47589 Using RequiresOptIn annotation on constructor property results in error even if the annotation has no VALUE_PARAMETER target

IDE

  • KT-47947 Add language version 1.6 to the compiler configuration preferences

Libraries

  • KT-23351 Regex.splitToSequence, CharSequence.splitToSequence(Regex)
  • KT-42851 kotlin.time.Duration toString() shows wrong result for seconds
  • KT-45325 Parsing Duration from String
  • KT-34021 Regex.matchAt / matchesAt

Native. Stdlib

  • KT-47915 Kotlin/Native: Provide access to test cases generated by the compiler

Reflection

  • KT-47650 KClass::nestedClasses throws ClassCastException for script classes with type aliases

Tools. CLI

  • KT-47623 Deprecate -Xuse-experimental
  • KT-30778 kotlin-compiler.jar contains shaded but not relocated kotlinx.coroutines

Tools. Commonizer

  • KT-47433 [Commonizer] Commonize functions/properties with TA/Class types in signature
  • KT-47691 [Commonizer] Commonize var and val properties
  • KT-47434 [Commonizer] Commonize parameterized (type-alias + class) types
  • KT-47432 [Commonizer] Commonize (type-alias + class) types used in functions

Tools. Daemon

  • KT-47152 Incremental Compilation with Kotlin compile daemon and JDK 17 fails with IllegalAccessException

Tools. Gradle

New Features

  • KT-45757 Add an easier way to explicitly set Kotlin daemon jvm arguments

Fixes

  • KT-47940 Kotlin JVM toolchain breaks configuration cache
  • KT-46626 kotlin-android plugin with kotlin-dsl: Extension with name 'android' does not exist. Currently registered extension names: [ext, kotlin, kotlinTestRegistry]
  • KT-47754 “'compileDebugUnitTestJavaWithJavac' task (current target is 1.8)” during build android project without specified target and with jvmToolchain = JDK 11
  • KT-47520 Kotlin and Java target compatibility check produces false positive on using Gradle toolchains
  • KT-46978 Duplicate resource errors on gradle 7 with multi-module multiplatform project with withJava
  • KT-27687 Empty directories in source set causes gradle cache miss for KotlinCompile task
  • KT-47635 Kotlin version conflict on using 'noarg' Gradle plugin
  • KT-47636 Kotlin version conflict on using 'sam-with-receiver' Gradle plugin
  • KT-47354 Kotlin version conflict on using 'allopen' Gradle plugin
  • KT-45202 Kapt crashes with java.io.UTFDataFormatException

Tools. Gradle. JS

  • KT-47559 KJS / Gradle: Run task created using eager API and breaks task configuration avoidance

Tools. Gradle. Multiplatform

  • KT-38111 Gradle DSL: rename useExperimentalAnnotation function
  • KT-47612 Task :buildKotlinToolingMetadata is incompatible with Gradle configuration cache
  • KT-47611 Task :generateMetadataFileForKotlinMultiplatformPublication is incompatible with Gradle configuration cache

Tools. Gradle. Native

  • KT-47653 Support multi arch build via embedAndSign task
  • KT-47078 Support Apple Silicon in cocoapods gradle plugin
  • KT-47077 Support Apple Silicon in embedAndSign task

Tools. Maven

  • KT-45689 JDK-16: kotlin-maven-plugin fails with IllegalAccessError: class com.intellij.util.io.FileChannelUtil when using incremental compilation

Tools. Scripts

  • KT-43917 Gradle dependency conflict with resolutionStrategy failOnVersionConflict and kotlin 1.4

Checksums

File Sha256
kotlin-compiler-1.5.30-RC.zip 5b59032acde09c1eab1c73ac5d494cc0b9abbe4183230ceb60039e561586a958
kotlin-native-linux-x86_64-1.5.30-RC.tar.gz 7a3d09ae6053af5278b23c92336a7dc4177bb8642da0b93cda8f05d7fa978d6b
kotlin-native-macos-x86_64-1.5.30-RC.tar.gz 05f298b4b82db524d27e9b114fa9047be84adf0cbfb655c773d9ea821b096d3c
kotlin-native-macos-aarch64-1.5.30-RC.tar.gz 3c7765b68f0c88cca3e7794e3511e0f48b69d9c0c1da13c249bd5f3307e3fe9f
kotlin-native-windows-x86_64-1.5.30-RC.zip 435feb53f5e3bd60d5cf4723ffed9fdc563632b375d509e3e61836fbf1626a98

Don't miss a new kotlin release

NewReleases is sending notifications on new releases.