release notes
release notes
Published 5/26/2021
Pre-ReleasePre-releaseKT-45189 Support nullability annotations at module levelKT-45525 Allow to omit JvmInline annotation for expect value classesKT-46545 Emit annotations on function type parameters into bytecode for -jvm-target 1.8 and aboveKT-36646 Don't box primitive values in equality comparison with objects in JVM_IRKT-8325 Unresolved annotation should be an errorKT-19455 Type annotation unresolved on a type parameter of a supertype in anonymous object expressionKT-24643 Prohibit using a type parameter declared for an extension property inside delegateKT-25876 Annotations on return types and supertypes are not analyzedKT-28449 Annotation target is not analyzed in several cases for type annotationsKT-36770 Prohibit unsafe calls with expected @NotNull T and given Kotlin generic parameter with nullable boundKT-38325 IllegalStateException: No parameter with index 0-0 when iterating Scala 2.12.11 ListKT-38540 Kotlin/Native Set.contains fails with specific enum setupKT-41620 ClassCastException: Class cannot be cast to java.lang.VoidKT-41679 NI: TYPE_MISMATCH wrong type inference of collection with type Any and integer literalKT-41818 NI: False positive IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION leads to NothingValueException on delegated propertiesKT-42631 ArrayIndexOutOfBoundsException was thrown during IR loweringKT-43258 NI: False positive "Suspend function 'invoke' should be called only from a coroutine or another suspend function" when calling suspend operator fun on object property from last expression of a crossinlined suspend lambdaKT-44036 Enum initialization orderKT-44511 FIR DFA: smartcast after if (nullable ?: boolean)KT-44554 RAW FIR: NPE in RawFirBuilderKT-44695 *_TYPE_MISMATCH_ON_OVERRIDE checkers do not work for anonymous objectsKT-44699 FIR: incorrect lambda return type (led to a false alarm: PROPERTY_TYPE_MISMATCH_ON_OVERRIDE)KT-44802 FIR bootstrap: trying to access package private classKT-44814 FIR bootstrap: incorrect cast in when branchKT-44942 [FIR] ClassCastException in boostrap testsKT-44995 FIR: false positive for ANNOTATION_ARGUMENT_MUST_BE_CONSTKT-45010 FIR: lambda arguments of inapplicable call is not resolvedKT-45048 FIR bootstrap: VerifyError on KtUltraLightClassKT-45052 FIR bootstrap: inapplicable candidate in GenerateSpecTests.ktKT-45121 FIR IDE: redundant vararg parameter type transformationKT-45136 Native: dividing Int.MIN_VALUE by -1 crashes or hangsKT-45316 [FIR] Ambiguity between two implicit invokes with receiverKT-45344 FIR: Wrong inferred type for nullable type parameterKT-45475 [FIR] No smartcast after throw in if inside try blockKT-45584 [FIR] Fix overriding property and java function in java classKT-45697 JVM IR: ISE "Function has no body" on getter of private field in a class present both in sources and dependenciesKT-45842 Compiler doesn't allow a shared class to inherit a platform-specific sealed classKT-45848 False negative [SEALED_INHERITOR_IN_DIFFERENT_MODULE] error in compiler for a platform-specific inheritor of a shared sealed classKT-46048 Enum entries init order in companion objectKT-46074 FIR: private-in-file fun interface is considered invisible in this fileKT-46173 No error reporting on annotations on target type of as expression in returnKT-46270 [FIR] Support @PublishedAPI in inline checkerKT-46539 Generate annotations on type parameters bounds in bytecodeKT-46670 StackOverflowError on inheritance from raw type where class has protobuf-like recursive genericsKT-46715 JVM / IR: "AssertionError: Unbound symbols not allowed IrConstructorSymbolImpl" with enum classes with the same name in test and src foldersKT-44638 clone() call is unresolved in JVM module of a multiplatform projectKT-45629 [ULC] KtUltraLightFieldForSourceDeclaration.nameIdentifier returns nullKT-45908 Reproduciable 'org.jetbrains.kotlin.idea.caches.resolve.KotlinIdeaResolutionException: Kotlin resolution encountered a problem while analyzing KtNameReferenceExpression'KT-45175 FIR IDE: Exception with local property in init blockKT-45199 FIR IDE: Error while collecting diagnostic on stale element after replacing element in quickfixKT-45312 FIR IDE: FIR plugin throws exception on synthetic functionKT-34401 KotlinGradleModelBuilder builds models for non-kotlin modules and always trigger full task configuration.KT-46488 Import of a multiplatform project with MPP module depending on Kotlin/JVM one failsKT-45075 Inspection: Redundant creation of Json formatKT-45347 Sealed interfaces: quickfix to move to package/module of sealed class/interface should not be shown in case of read-only declarationKT-45348 Sealed interfaces: show error for usage of sealed class/interface from a library in Java source codeKT-46063 In multiplatform code, suggest to generate remaining when branches at least for shared sealed classesKT-44431 Quickfix to move class/interface to proper location: it is allowed to choose test source in JPS project while compiler does not allow itKT-40235 KJS: IR. Broken support for external interface companionKT-40689 KJS / IR: strange and slow code for kotlin.math.max and kotlin.math.min for DoubleKT-44138 KJS / IR: Constant folding works incorrectly with unsigned arithmeticsKT-44950 KJS / IR: "IllegalStateException: Can't find name for declaration" in case of extending export declared class without @JsExport annotationKT-45057 KJS / IR: "ClassCastException" when using js function in init blockKT-45655 KJS: "REINTERPRET_CAST" is not copyableKT-45866 Default parameter with generic in expect-actual declarationsKT-43701 Stdlib: Expand KDoc of inc() and dec() for operatorsKT-36880 K/N IR: Reference to expect property in actual declaration is not remappedKT-45236 JVM / IR: "IllegalStateException: Symbol with IrTypeParameterSymbolImpl is unbound" caused by contracts and sealed classKT-33175 IR: String constants with incorrect surrogate pairs aren't preserved during serialization/deserializationKT-44799 Different behavior with functional interfaces in Kotlin/Native on iOSKT-42796 [Reverse C Interop] Package with no public methods generate empty struct in the header, leading to an errorKT-45127 KMM: hard to pass an error to Kotlin code from implementation of Kotlin method in Swift codeKT-45063 Profiling indicates that a lot of time is spent on updateHeapRef on Apple platforms when running KMP codeKT-13490 Equality doesn't work for KProperty.Accessor implementationsKT-45497 [Commonizer] c-interop commonization: Dependency commonizationKT-46077 [Commonizer] Add commonizer_target to commonized klib's manifestKT-46107 [Commonizer] CInteropCommonizerTask receives faulty dependencies in multi module projects containing multiple c-interopsKT-46248 MPP: Compile KotlinMetadata fails with Unresolved reference if only one native platform from shared source set is availableKT-7112 Support calling Lombok-generated methods within same moduleKT-45541 JVM / IR / Serialization: NullPointerException caused by "Serializable" annotation and local data classKT-43988 Enable plugin validation during buildKT-45301 Gradle: Empty build/kotlin dir with custom build directoryKT-45519 loadAndroidPluginVersion() impacts performance negatively and noticeably in multimodule Android buildKT-45744 Create Kotlin Gradle Plugin JUnit5 basic test setupKT-45834 Gradle Plugin read system property related to kotlinCompilerClasspath breaks use of configuration cacheKT-42911 Support Gradle configuration cache for K/JS tasksKT-45294 KJS / Gradle: Number of modules in project affects JS tasks configuration cache state sizeKT-45754 KJS / IR: Remove adding option of source maps in Gradle pluginKT-46178 KJS / Dukat: Added as a dependency always without conditionKT-36679 MPP Gradle plugin: Improve messaging for the commonizerKT-45832 CInteropCommonization: Filter out illegal dependenciesKT-39016 Missing stdlib when the downloading process was abortedKT-44059 iosSimTest tasks are never up-to-dateKT-45801 compileIosMainKotlinMetadata compilation property of gradle task is not initialized and fails with Execution failed for task ':shared:generateProjectStructureMetadata'KT-44741 Incremental compilation: inspectClassesForKotlinIC doesn't determine changes with imported constantKT-34351 KotlinTargetsIndex creation takes too long even if project doesn't have any kotlinKT-45191 [JPS] Marking method as "default" in Java SAM interface doesn't affect dependenciesKT-46242 Support Lombok kotlin plugin in JPS and mavenKT-28901 Consider caching annotation processors classloadersKT-27123 kapt: missing space in error log makes location non-clickableKT-29929 [Kapt] Stub generator uses constant value in method annotation instead of constant name 2.KT-32202 Gradle task kaptKotlin fails: "module not found" in Java 11 modular applicationKT-34838 Kapt: 'cannot find symbol' for a top-level property with anonymous delegateKT-35104 Support @JvmStatic in KAPT stubsKT-37586 KAPT: When delegated property use an unknown type (to-be-generated class), correctTypeError will mess up the $delegate field typeKT-39060 Kapt: correctErrorTypes don't retain return type of getter in Java stubKT-39715 KaptGenerateStubsTask resolves annotation processor options too early (before execution time)KT-43804 Kapt fails to preserve parameter names in open suspend functionsKT-45032 Kapt: NullPointerException: insnList.first must not be nullKT-46176 Kapt: "java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 3" with delegation and property reference| File | Sha256 | | --- | --- | | kotlin-compiler-1.5.20-M1.zip | b50394e669651024025c23c53779c75f68d4fc9ab7bfecd58ea5e2c9eda5a390 | | kotlin-native-linux-1.5.20-M1.tar.gz | ef9fb39d2c4bdba16a9ca0849abb26cb6384f444464505087b4a8ebde6ed6103 | | kotlin-native-macos-1.5.20-M1.tar.gz | 84d6f412eaec3b61929310cf45dfff7e230d6d676ffea14014aa99cbd6668222 | | kotlin-native-windows-1.5.20-M1.zip | b9c86df611a63b513f3a327da740007a018012639b6a64b50439fd186bda87bf |
release notes
Published 5/26/2021
Pre-ReleasePre-releaseKT-45189 Support nullability annotations at module levelKT-45525 Allow to omit JvmInline annotation for expect value classesKT-46545 Emit annotations on function type parameters into bytecode for -jvm-target 1.8 and aboveKT-36646 Don't box primitive values in equality comparison with objects in JVM_IRKT-8325 Unresolved annotation should be an errorKT-19455 Type annotation unresolved on a type parameter of a supertype in anonymous object expressionKT-24643 Prohibit using a type parameter declared for an extension property inside delegateKT-25876 Annotations on return types and supertypes are not analyzedKT-28449 Annotation target is not analyzed in several cases for type annotationsKT-36770 Prohibit unsafe calls with expected @NotNull T and given Kotlin generic parameter with nullable boundKT-38325 IllegalStateException: No parameter with index 0-0 when iterating Scala 2.12.11 ListKT-38540 Kotlin/Native Set.contains fails with specific enum setupKT-41620 ClassCastException: Class cannot be cast to java.lang.VoidKT-41679 NI: TYPE_MISMATCH wrong type inference of collection with type Any and integer literalKT-41818 NI: False positive IMPLICIT_NOTHING_TYPE_ARGUMENT_IN_RETURN_POSITION leads to NothingValueException on delegated propertiesKT-42631 ArrayIndexOutOfBoundsException was thrown during IR loweringKT-43258 NI: False positive "Suspend function 'invoke' should be called only from a coroutine or another suspend function" when calling suspend operator fun on object property from last expression of a crossinlined suspend lambdaKT-44036 Enum initialization orderKT-44511 FIR DFA: smartcast after if (nullable ?: boolean)KT-44554 RAW FIR: NPE in RawFirBuilderKT-44695 *_TYPE_MISMATCH_ON_OVERRIDE checkers do not work for anonymous objectsKT-44699 FIR: incorrect lambda return type (led to a false alarm: PROPERTY_TYPE_MISMATCH_ON_OVERRIDE)KT-44802 FIR bootstrap: trying to access package private classKT-44814 FIR bootstrap: incorrect cast in when branchKT-44942 [FIR] ClassCastException in boostrap testsKT-44995 FIR: false positive for ANNOTATION_ARGUMENT_MUST_BE_CONSTKT-45010 FIR: lambda arguments of inapplicable call is not resolvedKT-45048 FIR bootstrap: VerifyError on KtUltraLightClassKT-45052 FIR bootstrap: inapplicable candidate in GenerateSpecTests.ktKT-45121 FIR IDE: redundant vararg parameter type transformationKT-45136 Native: dividing Int.MIN_VALUE by -1 crashes or hangsKT-45316 [FIR] Ambiguity between two implicit invokes with receiverKT-45344 FIR: Wrong inferred type for nullable type parameterKT-45475 [FIR] No smartcast after throw in if inside try blockKT-45584 [FIR] Fix overriding property and java function in java classKT-45697 JVM IR: ISE "Function has no body" on getter of private field in a class present both in sources and dependenciesKT-45842 Compiler doesn't allow a shared class to inherit a platform-specific sealed classKT-45848 False negative [SEALED_INHERITOR_IN_DIFFERENT_MODULE] error in compiler for a platform-specific inheritor of a shared sealed classKT-46048 Enum entries init order in companion objectKT-46074 FIR: private-in-file fun interface is considered invisible in this fileKT-46173 No error reporting on annotations on target type of as expression in returnKT-46270 [FIR] Support @PublishedAPI in inline checkerKT-46539 Generate annotations on type parameters bounds in bytecodeKT-46670 StackOverflowError on inheritance from raw type where class has protobuf-like recursive genericsKT-46715 JVM / IR: "AssertionError: Unbound symbols not allowed IrConstructorSymbolImpl" with enum classes with the same name in test and src foldersKT-44638 clone() call is unresolved in JVM module of a multiplatform projectKT-45629 [ULC] KtUltraLightFieldForSourceDeclaration.nameIdentifier returns nullKT-45908 Reproduciable 'org.jetbrains.kotlin.idea.caches.resolve.KotlinIdeaResolutionException: Kotlin resolution encountered a problem while analyzing KtNameReferenceExpression'KT-45175 FIR IDE: Exception with local property in init blockKT-45199 FIR IDE: Error while collecting diagnostic on stale element after replacing element in quickfixKT-45312 FIR IDE: FIR plugin throws exception on synthetic functionKT-34401 KotlinGradleModelBuilder builds models for non-kotlin modules and always trigger full task configuration.KT-46488 Import of a multiplatform project with MPP module depending on Kotlin/JVM one failsKT-45075 Inspection: Redundant creation of Json formatKT-45347 Sealed interfaces: quickfix to move to package/module of sealed class/interface should not be shown in case of read-only declarationKT-45348 Sealed interfaces: show error for usage of sealed class/interface from a library in Java source codeKT-46063 In multiplatform code, suggest to generate remaining when branches at least for shared sealed classesKT-44431 Quickfix to move class/interface to proper location: it is allowed to choose test source in JPS project while compiler does not allow itKT-40235 KJS: IR. Broken support for external interface companionKT-40689 KJS / IR: strange and slow code for kotlin.math.max and kotlin.math.min for DoubleKT-44138 KJS / IR: Constant folding works incorrectly with unsigned arithmeticsKT-44950 KJS / IR: "IllegalStateException: Can't find name for declaration" in case of extending export declared class without @JsExport annotationKT-45057 KJS / IR: "ClassCastException" when using js function in init blockKT-45655 KJS: "REINTERPRET_CAST" is not copyableKT-45866 Default parameter with generic in expect-actual declarationsKT-43701 Stdlib: Expand KDoc of inc() and dec() for operatorsKT-36880 K/N IR: Reference to expect property in actual declaration is not remappedKT-45236 JVM / IR: "IllegalStateException: Symbol with IrTypeParameterSymbolImpl is unbound" caused by contracts and sealed classKT-33175 IR: String constants with incorrect surrogate pairs aren't preserved during serialization/deserializationKT-44799 Different behavior with functional interfaces in Kotlin/Native on iOSKT-42796 [Reverse C Interop] Package with no public methods generate empty struct in the header, leading to an errorKT-45127 KMM: hard to pass an error to Kotlin code from implementation of Kotlin method in Swift codeKT-45063 Profiling indicates that a lot of time is spent on updateHeapRef on Apple platforms when running KMP codeKT-13490 Equality doesn't work for KProperty.Accessor implementationsKT-45497 [Commonizer] c-interop commonization: Dependency commonizationKT-46077 [Commonizer] Add commonizer_target to commonized klib's manifestKT-46107 [Commonizer] CInteropCommonizerTask receives faulty dependencies in multi module projects containing multiple c-interopsKT-46248 MPP: Compile KotlinMetadata fails with Unresolved reference if only one native platform from shared source set is availableKT-7112 Support calling Lombok-generated methods within same moduleKT-45541 JVM / IR / Serialization: NullPointerException caused by "Serializable" annotation and local data classKT-43988 Enable plugin validation during buildKT-45301 Gradle: Empty build/kotlin dir with custom build directoryKT-45519 loadAndroidPluginVersion() impacts performance negatively and noticeably in multimodule Android buildKT-45744 Create Kotlin Gradle Plugin JUnit5 basic test setupKT-45834 Gradle Plugin read system property related to kotlinCompilerClasspath breaks use of configuration cacheKT-42911 Support Gradle configuration cache for K/JS tasksKT-45294 KJS / Gradle: Number of modules in project affects JS tasks configuration cache state sizeKT-45754 KJS / IR: Remove adding option of source maps in Gradle pluginKT-46178 KJS / Dukat: Added as a dependency always without conditionKT-36679 MPP Gradle plugin: Improve messaging for the commonizerKT-45832 CInteropCommonization: Filter out illegal dependenciesKT-39016 Missing stdlib when the downloading process was abortedKT-44059 iosSimTest tasks are never up-to-dateKT-45801 compileIosMainKotlinMetadata compilation property of gradle task is not initialized and fails with Execution failed for task ':shared:generateProjectStructureMetadata'KT-44741 Incremental compilation: inspectClassesForKotlinIC doesn't determine changes with imported constantKT-34351 KotlinTargetsIndex creation takes too long even if project doesn't have any kotlinKT-45191 [JPS] Marking method as "default" in Java SAM interface doesn't affect dependenciesKT-46242 Support Lombok kotlin plugin in JPS and mavenKT-28901 Consider caching annotation processors classloadersKT-27123 kapt: missing space in error log makes location non-clickableKT-29929 [Kapt] Stub generator uses constant value in method annotation instead of constant name 2.KT-32202 Gradle task kaptKotlin fails: "module not found" in Java 11 modular applicationKT-34838 Kapt: 'cannot find symbol' for a top-level property with anonymous delegateKT-35104 Support @JvmStatic in KAPT stubsKT-37586 KAPT: When delegated property use an unknown type (to-be-generated class), correctTypeError will mess up the $delegate field typeKT-39060 Kapt: correctErrorTypes don't retain return type of getter in Java stubKT-39715 KaptGenerateStubsTask resolves annotation processor options too early (before execution time)KT-43804 Kapt fails to preserve parameter names in open suspend functionsKT-45032 Kapt: NullPointerException: insnList.first must not be nullKT-46176 Kapt: "java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 3" with delegation and property reference| File | Sha256 | | --- | --- | | kotlin-compiler-1.5.20-M1.zip | b50394e669651024025c23c53779c75f68d4fc9ab7bfecd58ea5e2c9eda5a390 | | kotlin-native-linux-1.5.20-M1.tar.gz | ef9fb39d2c4bdba16a9ca0849abb26cb6384f444464505087b4a8ebde6ed6103 | | kotlin-native-macos-1.5.20-M1.tar.gz | 84d6f412eaec3b61929310cf45dfff7e230d6d676ffea14014aa99cbd6668222 | | kotlin-native-windows-1.5.20-M1.zip | b9c86df611a63b513f3a327da740007a018012639b6a64b50439fd186bda87bf |
The Kotlin Programming Language.