Releases: JetBrains/kotlin
Releases Β· JetBrains/kotlin
Kotlin 1.5.32
Changelog
Tools. Gradle. Multiplatform
KT-49798
[MPP] [Android] AGP 7.1.0+ android target publications leak 'AgpVersionAttr' attribute
Checksums
File |
Sha256 |
kotlin-compiler-1.5.32.zip |
2e728c43ee0bf819eae06630a4cbbc28ba2ed5b19a55ee0af96d2c0ab6b6c2a5 |
kotlin-native-linux-x86_64-1.5.32.tar.gz |
3b1441171951f80272d227da8673dcceff48343a3effba36ee49e5be5f55a1a3 |
kotlin-native-macos-x86_64-1.5.32.tar.gz |
3060512bceb7e3b0bdfe9f5af7d526192b745be1c42a317b6a455b06393513df |
kotlin-native-macos-aarch64-1.5.32.tar.gz |
b41322c2e7d88379d65554b70edc34eb05f49c9d72d528c16b64a60a9c2250b8 |
kotlin-native-windows-x86_64-1.5.32.zip |
6d6a2dbaa65d3b5f07bb6b48cbd6fa92f616d2c8edd0afb4f19f1cc35566476a |
Kotlin 1.6.0
Changelog
Android
KT-48019
Bundle Kotlin Tooling Metadata into apk artifacts
KT-47733
JVM / IR: Android Synthetic don't generate _findCachedViewById function
Compiler
New Features
KT-47984
In-place arguments inlining for @InlineOnly functions
KT-12794
Allow runtime retention repeatable annotations when compiling under Java 8
KT-43714
Support annotations on class type parameters (AnnotationTarget.TYPE_PARAMETER)
KT-45949
Kotlin/Native: Improve bound check elimination
KT-43919
Support loading Java annotations on base classes and implementing interfaces' type arguments
KT-48194
Try to resolve calls where we don't have enough type information, using the builder inference despite the presence of the annotation
KT-47736
Support conversion from regular functional types to suspending ones in JVM IR
KT-39055
Support property delegate created via synthetic method instead of field
Performance Improvements
KT-45185
FIR2IR: get rid of IrBuiltIns usages
KT-47918
JVM / IR: Performance degradation with const-bound for-cycles
KT-33835
Bytecode including unnecessary null checks for safe calls where left-hand side is non-nullable
KT-41510
Compilation of kotlin html DSL is still too slow
KT-48211
We spend a lot of time in ExpectActual declaration checker when there is very small amount of actual/expect declaration
KT-39054
Optimize delegated properties which call get/set on the given KProperty instance on JVM
KT-46615
Don't generate nullability assertions in methods for directly invoked lambdas
Fixes
KT-49613
JVM / IR: "Exception during IR lowering" with java fun interface and it's non-trivial usage
KT-49548
"ClassCastException: java.util.ArrayList$Itr cannot be cast to kotlin.collections.IntIterator" with Iterable inside let
KT-22562
Deprecate calls to "suspend" named functions with single dangling lambda argument
KT-47120
JVM IR: NoClassDefFoundError when there are an extension and a regular function with the same name
KT-49477
Has ran into recursion problem with two interdependant delegates
KT-49442
ClassCastException on reporting [EXPOSED_FROM_PRIVATE_IN_FILE] Deprecation: private-in-file class should not expose 'private-in-class'
KT-49371
JVM / IR: "NoSuchMethodError" with multiple inheritance
KT-44843
PSI2IR: "org.jetbrains.kotlin.psi2ir.generators.ErrorExpressionException: null: KtCallExpression" with delegate who has name or parameter with the same name as a property
KT-49294
Turning FlowCollector into 'fun interface' leads to AbstractMethodError
KT-18282
Companion object referencing it's own method during construction compiles successfully but fails at runtime with VerifyError
KT-25289
Prohibit access to class members in the super constructor call of its companion and nested object
KT-32753
Prohibit @JvmField on property in primary constructor that overrides interface property
KT-43433
Suspend conversion is disabled
message in cases where it is not supported and quickfix to update language version is suggested
KT-49399
Building repeatable annotation with Container nested class fails with ISE: "Repeatable annotation class should have a container generated"
KT-49209
Default upper bound for type variables should be non-null
KT-49335
NPE in RepeatedAnnotationLowering.wrapAnnotationEntriesInContainer
when using @Repeatable
annotation from different file
KT-48876
java.lang.UnsupportedOperationException: org.jetbrains.kotlin.ir.expressions.impl.IrReturnableBlockImpl@4a729df2
KT-48131
IAE "Repeatable annotation container value must be a class reference" on using Kotlin-repeatable annotation from dependency
KT-49322
Postpone promoting warnings to errors for ProperTypeInferenceConstraintsProcessing
feature
KT-49285
Exception on nested builder inference calls
KT-49101
IllegalArgumentException: ClassicTypeSystemContext couldn't handle: Captured(out Number)
KT-41378
Compilation failed: Deserializer for declaration public kotlinx.coroutines/SingleThreadDispatcher|null[0] is not found
KT-47285
IR deserialization exception when dependency KLIB has class instead of typealias
KT-46697
IllegalStateException: IrTypeAliasSymbol expected: Unbound public symbol for public kotlinx.coroutines/CancellationException|null[0] compiling KMM module for Kotlin/Native with Kotlin 1.5
KT-36399
Gradually support TYPE_USE nullability annotations read from class-files
KT-11454
Load annotations on TYPE_USE/TYPE_PARAMETER positions from Java class-files
KT-18768
@Notnull
annotation from Java does not work with varargs
KT-24392
Nullability of Java arrays is read incorrectly if @Nullable
annotation has both targets TYPE_USE and VALUE_PARAMETER
KT-48157
FIR: incorrect resolve with built-in names in use
KT-46409
FIR: erroneous resolve to qualifier instead of extension
KT-44566
FirConflictsChecker
do not check for conflicting overloads across multiple files
KT-37318
FIR: Discuss treating flexible bounded constraints in inference
KT-45989
FIR: wrong callable reference type inferred
KT-46058
[FIR] Remove state from some checkers
KT-45973
FIR: wrong projection type inferred
KT-43083
[FIR] False positive 'HIDDEN' on internal
KT-48794
Breaking change in 1.5.30: Builder inference lambda contains inapplicable calls so {1} cant be inferred
KT-46727
Report warning on contravariant usages of star projected argument from Java
KT-40668
FIR: Ambiguity on qualifier when having multiple different same-named objects in near scopes
KT-37081
[FIR] errors NO_ELSE_IN_WHEN and INCOMPATIBLE_TYPES absence
KT-48162
NON_VARARG_SPREAD isn't reported on *toTypedArray() call
KT-45118
ClassCastException caused by parent and child class in if-else
KT-47605
Kotlin/Native: switch to LLD linker for MinGW targets
KT-48912
K/N Symbol with IrSimpleFunctionSymbolImpl is unbound
and JS Validation failed in file shaders.kt
KT-44436
Support default not null annotations to enhance T into T!!
KT-49190
Increase stub versions
KT-48261
"overload resolution ambiguity" for JSpecify+jsr305-annotated Java List implementation
KT-48778
-Xtype-enhancement-improvements-strict-mode not respecting @NonNull
annotation for property accesses?
KT-48606
[1.6] Instantiated annotations do not implement hashCode correctly/consistently
KT-49157
Tail-call optimization miss with cast to type parameter
KT-46437
NI: "Throwable: Resolution error of this typ...
Read more
Kotlin 1.6.0-RC2
Changelog
Compiler
New Features
KT-43919
Support loading Java annotations on base classes and implementing interfaces' type arguments
Performance Improvements
KT-45185
FIR2IR: get rid of IrBuiltIns usages
Fixes
KT-49477
Has ran into recursion problem with two interdependant delegates
KT-49371
JVM / IR: "NoSuchMethodError" with multiple inheritance
KT-49294
Turning FlowCollector into 'fun interface' leads to AbstractMethodError
KT-18282
Companion object referencing it's own method during construction compiles successfully but fails at runtime with VerifyError
KT-25289
Prohibit access to class members in the super constructor call of its companion and nested object
KT-32753
Prohibit @JvmField on property in primary constructor that overrides interface property
KT-43433
Suspend conversion is disabled
message in cases where it is not supported and quickfix to update language version is suggested
KT-49209
Default upper bound for type variables should be non-null
KT-22562
Deprecate calls to "suspend" named functions with single dangling lambda argument
KT-49335
NPE in RepeatedAnnotationLowering.wrapAnnotationEntriesInContainer
when using @Repeatable
annotation from different file
KT-49322
Postpone promoting warnings to errors for ProperTypeInferenceConstraintsProcessing
feature
KT-49285
Exception on nested builder inference calls
KT-49101
IllegalArgumentException: ClassicTypeSystemContext couldn't handle: Captured(out Number)
KT-36399
Gradually support TYPE_USE nullability annotations read from class-files
KT-11454
Load annotations on TYPE_USE/TYPE_PARAMETER positions from Java class-files
KT-18768
@Notnull
annotation from Java does not work with varargs
KT-24392
Nullability of Java arrays is read incorrectly if @Nullable
annotation has both targets TYPE_USE and VALUE_PARAMETER
KT-48157
FIR: incorrect resolve with built-in names in use
KT-46409
FIR: erroneous resolve to qualifier instead of extension
KT-44566
FirConflictsChecker
do not check for conflicting overloads across multiple files
KT-37318
FIR: Discuss treating flexible bounded constraints in inference
KT-45989
FIR: wrong callable reference type inferred
KT-46058
[FIR] Remove state from some checkers
KT-45973
FIR: wrong projection type inferred
KT-43083
[FIR] False positive 'HIDDEN' on internal
KT-46727
Report warning on contravariant usages of star projected argument from Java
KT-40668
FIR: Ambiguity on qualifier when having multiple different same-named objects in near scopes
KT-37081
[FIR] errors NO_ELSE_IN_WHEN and INCOMPATIBLE_TYPES absence
KT-48162
NON_VARARG_SPREAD isn't reported on *toTypedArray() call
KT-45118
ClassCastException caused by parent and child class in if-else
KT-47605
Kotlin/Native: switch to LLD linker for MinGW targets
KT-44436
Support default not null annotations to enhance T into T!!
KT-49190
Increase stub versions
Docs & Examples
KT-48534
Wrong compiler argument for RequiresOptIn
IDE. Debugger
KT-47970
AE: "Either library or explicit name have to be provided " in IR debugger tests
JavaScript
KT-43783
KJS / IR: companion object and nested objects are not exported
KT-47524
KJS / IR: Treat protected members as part of exported API
Libraries
KT-46229
Bring back Duration factory extension properties
Native
KT-49384
Kotlin/Native: Unexpected variance in super type argument: out @0
KT-49234
SIGSEGV using the new memory manager in release in Kotlin 1.6.0-RC in MacosX64
Tools. Gradle
KT-49189
In Gradle, dependencies on an MPP with Android+JVM fail to resolve in pure-Java projects
KT-48830
Change deprecation level to 'ERROR' for 'KotlinGradleSubplugin'
KT-48264
Cannot write Kotlin build report unless directory exists
KT-45504
Deprecate Gradle option KotlinJvmOptions.useIR since 1.5
Tools. Gradle. JS
KT-49124
KJS / Gradle: Unable to load '@webpack-cli/serve' command
KT-49201
KJS / Gradle: NPM dependencies resolution may fail on parallel builds
Tools. Gradle. Multiplatform
KT-48709
MPP: Task compileKotlinMacosX64 fails on matching native variants if ktlint presented
Tools. REPL
KT-47783
REPL: Keywords completion appears after numeric and string literals
Tools. Scripts
KT-49400
Script resolver options can't take values with special symbols (/, , $, :, .) in them
Checksums
File |
Sha256 |
kotlin-compiler-1.6.0-RC2.zip |
ef2a9b848584b8d8dd9a5e652ed8f9121076b0c65c0c223c780a2f81519f2416 |
kotlin-native-linux-x86_64-1.6.0-RC2.tar.gz |
c915017f3325fda42f6e8c226c317090092abca354aae2123e56bc4184b05462 |
kotlin-native-macos-x86_64-1.6.0-RC2.tar.gz |
96cc58bc25adc678d10dc89ef35b1ad45c53177d511decde16daa83f16092afc |
kotlin-native-macos-aarch64-1.6.0-RC2.tar.gz |
cecd88bab165ab5abef7fb4543496c57d4f39bb4a15bc7899db6fc3c1c19cffc |
kotlin-native-windows-x86_64-1.6.0-RC2.zip |
cc90601c0dacf5c170d18386f39c3e69fa998dc2f1f55e9cff4fb75321892b97 |
Kotlin 1.6.0-RC
Changelog
Compiler
Fixes
KT-49157
Tail-call optimization miss with cast to type parameter
KT-48778
-Xtype-enhancement-improvements-strict-mode not respecting @NonNull
annotation for property accesses?
KT-46437
NI: "Throwable: Resolution error of this type shouldn't occur for resolve if as a call" caused by reflectively accessing private property inside "if/else" or "when" expression
KT-48590
IllegalArgumentException: ClassicTypeSystemContext couldn't handle: Captured(*) reified type class reference
KT-48261
"overload resolution ambiguity" for JSpecify+jsr305-annotated Java List implementation
KT-48633
Can't infer builder inference's type argument across local class
KT-49136
JVM IR: NPE with safe call chain and property set to null by reflection
KT-48912
K/N Symbol with IrSimpleFunctionSymbolImpl is unbound
and JS Validation failed in file shaders.kt
KT-48928
Prohibit using old JVM backend with language version >= 1.6
KT-41978
NI: Kotlin fails to infer type of function argument
KT-48732
JVM / IR: MalformedParameterizedTypeException is thrown when a Spring Bean of suspending function type is registered
KT-47841
Turning LV to 1.6 breaks some diagnostics based on jspecify annotations
KT-48498
JVM IR: IllegalAccessError with inline function call and property delegation from different module
KT-48319
JVM / IR: AssertionError: FUN caused by suspend lambda inside anonymous function
KT-48835
Psi2ir: vararg parameter value is lost when translating adapted function reference to base class member
KT-46908
JVM / IR: do not wrap fun interface implementation into another SAM adapter if it inherits from a functional type
KT-48927
JVM IR: "VerifyError: Bad invokespecial instruction: current class isn't assignable to reference class" when up-casting and read a base class's private property that has a custom getter in the base class's public function
KT-48992
Postpone migration to new operator resolution scheme for integer literals
KT-48290
Type bounds warning based on Java annotations not issues with language level 1.6
KT-47920
There is no warning on violated nullability of type parameter in accordance with java nullability annotation
KT-48851
Keep using warn mode for jspecify in 1.6
KT-46829
IR: NullPointerException caused by setting scoped generic extension var
KT-44843
PSI2IR: "org.jetbrains.kotlin.psi2ir.generators.ErrorExpressionException: null: KtCallExpression" with delegate who has name or parameter with the same name as a property
KT-42972
Forbid protected constructor calls from public inline functions
KT-45378
Prohibit super calls in public-api inline functions
KT-48515
JSpecify: If a class has a @Nullable
type-parameter bound, Kotlin should still treat unbounded wildcards like platform types
KT-48825
JVM IR: NPE with delegated property "by this" to base class
KT-48535
Make EXPERIMENTAL_ANNOTATION_ON_OVERRIDE warning
KT-48478
JVM IR: Coroutines 1.5.1 + Kotlin 1.5.30 - ClassCastException: CompletedContinuation cannot be cast to DispatchedContinuation
KT-48671
JVM / IR: "AssertionError: Primitive array expected: CLASS IR_EXTERNAL_DECLARATION_STUB CLASS"
KT-46181
JVM IR: private @JvmStatic function is generated in the outer class instead of companion object, which breaks existing calls via JNI or reflection (e.g. JUnit @MethodSource)
KT-48736
JVM IR: assert in SyntheticAccessorLowering when inline function attempts to access package-private field from Java
KT-20542
IllegalAccessError on calling private function with default parameters from internal inline function used in another package
KT-48331
JVM / IR: "VerifyError: Bad access to protected data in invokevirtual" when a sealed class uses another sealed class in its same hierarchy level as a constructor parameter
KT-48659
JVM / IR: Referential equality returns true for different instances
KT-48606
[1.6] Instantiated annotations do not implement hashCode correctly/consistently
KT-48316
"No value passed for parameter" regression with Java annotation default values with JSR-305
KT-48391
JVM / IR: "AssertionError: SyntheticAccessorLowering should not attempt to modify other files!" caused by class which inherits interface which has default function with default argument from companion const val
IDE. Gradle Integration
KT-46273
MPP: Don't fail import for case of missed platform in source set structure
KT-48823
Improve error reporting on import when configuration phase in Gradle failed
KT-48504
MPP: UninitializedPropertyAccessException on import if new hierarchical mpp flag conflicts with other flags
Libraries
New Features
KT-46423
infix extension fun Comparable.compareTo
KT-47421
Stabilize collection builders
Performance Improvements
KT-45438
Remove brittle ?contains? optimization in minus/removeAll/retainAll
Fixes
KT-47304
Random#nextLong generates value outside provided range
KT-48999
Align behavior of some JS functions with their JVM counterpart
KT-28378
Different behavior of Regex replace function in Java and JS when replacement string contains group reference
KT-46229
Bring back Duration factory extension properties
KT-46243
Typography.leftGuillemete and Typography.rightGuillemete are named inconsistent with standard
KT-46101
Review deprecations in stdlib for 1.6
KT-48456
Introduce Common (multi-platform) readln() and readlnOrNull() top-level functions
KT-38754
Deprecate appendln in favor of appendLine
Native
KT-48807
Cinterop: cannot create bindings for a framework when Xcode 13 RC is installed
Tools. CLI
KT-49007
Support three previous API versions
Tools. Compiler Plugins
KT-48842
Compiler crash: Symbol with IrFieldSymbolImpl is unbound
KT-48117
Kotlin AllOpen Plugin should open private methods
Tools. Gradle
KT-48745
JVM target compatibility check should be disabled when Java sources are empty
KT-49066
Setting kotlinOptions.modulePath in an android project breaks incremental compilation
KT-48847
Remove deprecated kotlin options marked for removal after 1.5
KT-48245
KGP makes compileOnly configuration resolvable
KT-48768
Misleading 'jdkHome' deprecation message
Tools. Gradle. Multiplatform
KT-48919
Gradle multiplatform plugin 1.6.0-M1 does not accept apiVersion = "1.7"
Tools. Scripts
KT-49012
Compiling .kts script with inner class declaration fails with Backend Internal Error caused by AE: "Local class constructor can't have dispatch receiver"
Tools. kapt
Read more
Kotlin 1.6.0-M1
Changelog
Android
KT-48019
Bundle Kotlin Tooling Metadata into apk artifacts
KT-47733
JVM / IR: Android Synthetic don't generate _findCachedViewById function
Compiler
New Features
KT-12794
Allow runtime retention repeatable annotations when compiling under Java 8
KT-47984
In-place arguments inlining for @InlineOnly functions
KT-48194
Try to resolve calls where we don't have enough type information, using the builder inference despite the presence of the annotation
KT-26245
Add ability to specify generic type parameters as not-null
KT-45949
Kotlin/Native: Improve bound check elimination
KT-47699
Support programmatic creation of class annotations and corresponding feature flag on JVM
KT-47736
Support conversion from regular functional types to suspending ones in JVM IR
KT-39055
Support property delegate created via synthetic method instead of field
Performance Improvements
KT-33835
Bytecode including unnecessary null checks for safe calls where left-hand side is non-nullable
KT-41510
Compilation of kotlin html DSL is still too slow
KT-48211
We spend a lot of time in ExpectActual declaration checker when there is very small amount of actual/expect declaration
KT-39054
Optimize delegated properties which call get/set on the given KProperty instance on JVM
KT-47918
JVM / IR: Performance degradation with const-bound for-cycles
KT-47785
Compilation time increased when trying to compile AssertJ DB expression in 1.5.21
KT-46615
Don't generate nullability assertions in methods for directly invoked lambdas
Fixes
KT-48523
Kotlin/Native: cross-compilation from Linux to MinGW not working when platform.posix
is used
KT-48295
JVM / IR: VerifyError: Bad access to protected data in getfield
KT-48440
JVM IR: Missing checkcast in generated bytecode causes VerifyError in Kotlin 1.5.30
KT-48794
Breaking change in 1.5.30: Builder inference lambda contains inapplicable calls so {1} cant be inferred
KT-48653
Warnings on non-exhaustive when statements missing in some cases with 1.6
KT-48394
JVM: Invalid locals caused by unboxing bytecode optimization
KT-48380
kotlin.RuntimeException: Unexpected receiver type
KT-47855
Kotlin/Native: compilation fails due to Escape Analysis
KT-48291
False positive [ACTUAL_MISSING] Declaration must be marked with 'actual' when implementing actual interface
KT-48613
Kotlin/Native fails to compile debug binaries for watchosArm64 target
KT-48618
Enable by default "suspend conversion" feature in 1.6
KT-48543
Native compiler crashes because of bridges for $default stubs
KT-47328
JVM / IR: NoSuchFieldError with missing CHECKCAST
KT-47638
Drop EXPERIMENTAL_IS_NOT_ENABLED diagnostic
KT-48349
OptIn markers are forbidden on local variable / value parameter / property getter only in presence of explicit Target annotation
KT-48589
KotlinTypeRefiner is lost, leading to TYPE_MISMATCH and OVERLOAD_RESOLUTION_AMBIGUITY issues with MPP projects
KT-48615
Inconsistent behavior with integer literals overflow (Implementation)
KT-47937
Implement deprecation of computing constant values of complex boolean expressions in when condition branches and conditions of loops
KT-47772
False negative WRONG_ANNOTATION_TARGET on type argument to function call
KT-48552
Kotlin/Native: iosArm64 debug build fails in 1.6.0-M1-139
KT-46182
Native: prohibit using dots in identifiers
KT-47917
JVM: "UTF8 string too large" caused by a big string
KT-46230
JVM IR: "IllegalArgumentException: Null argument in ExpressionCodegen for parameter VALUE_PARAMETER MOVED_DISPATCH_RECEIVER" with value class overriding function with default parameter
KT-48302
FIR: Investigate not-null assertion on generic Java method
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-48500
AE: "Last parameter type of suspend function must be Continuation, but it is kotlin.coroutines.experimental.Continuation" for kotlin-stdlib-common
library
KT-48469
Problem with properties lazy initialization while using kotlinx.serialization plugin
KT-48432
Regression in IntRange.contains (and probably other ranges too) when used in-place
KT-48361
INTEGER_OPERATOR_RESOLVE_WILL_CHANGE is not reported in some positions
KT-44855
"AssertionError: SyntheticAccessorLowering should not attempt to modify other files" on smart cast of protected field owner
KT-47499
JVM / IR: java.lang.VerifyError: Bad access to protected data in invokevirtual when trying to clone the result of lambda invocation that is "this" in an extension function
KT-46451
JVM Debugging: stepping on finally block end brace line before stepping into finally code
KT-48329
It's impossible to infer a type variables based on several builder inference lambdas
KT-48193
Don't use the builder inference for calls which can be resolved without it
KT-46450
JVM Debugging: some break statements in catch blocks have no line numbers and you cannot set breakpoints on them
KT-48172
"IllegalStateException: Cannot serialize error type: [ERROR : ]" in 1.5.21 with java kotlin interop
KT-48262
"Inconsistent type" with JSpecify @NullMarked
KT-46697
IllegalStateException: IrTypeAliasSymbol expected: Unbound public symbol for public kotlinx.coroutines/CancellationException|null[0] compiling KMM module for Kotlin/Native with Kotlin 1.5
KT-47285
IR deserialization exception when dependency KLIB has class instead of typealias
KT-41378
Compilation failed: Deserializer for declaration public kotlinx.coroutines/SingleThreadDispatcher|null[0] is not found
KT-47988
JVM / IR: "VerifyError: Bad type on operand stack" when invoking apply with a local method reference
KT-47833
False positive "Type argument is not within its bounds " with upcasting in 1.5.30-M1
KT-47911
Native compiler on ios_arm64 target generates movi.2d instructions, which are mishandled by Apple hardware
KT-14392
Repeated annotation with use site target is not detected for getter and setter
KT-47493
Missed frontend diagnostic in try/catch
KT-47597
JVM IR: if statement doesn't eval correctly on 1.5.20 possible nullable type differences.
KT-47922
False negative type mismatch on empty when as last statement of lambda
KT-47830
Some code doesn't compile with unrestricted builder inference
KT-34594
Do not generate fake debugger varia...
Read more
Kotlin 1.5.31
Changelog
Compiler
Fixes
KT-48659
JVM / IR: Referential equality returns true for different instances
KT-48613
Kotlin/Native fails to compile debug binaries for watchosArm64 target
KT-48316
"No value passed for parameter" regression with Java annotation default values with JSR-305
KT-48343
Mistake in an error message for uninferred type variable without unrestricted builder inference
KT-48543
Native compiler crashes because of bridges for $default stubs
KT-48349
OptIn markers are forbidden on local variable / value parameter / property getter only in presence of explicit Target annotation
KT-48295
JVM / IR: VerifyError: Bad access to protected data in getfield
KT-48551
JVM / IR: "IllegalStateException: Inline class has no primary constructor" caused by inline class from one module and fun interface
from another
KT-47917
JVM: "UTF8 string too large" caused by a big string
KT-48440
JVM IR: Missing checkcast in generated bytecode causes VerifyError in Kotlin 1.5.30
KT-48361
INTEGER_OPERATOR_RESOLVE_WILL_CHANGE is not reported in some positions
KT-48267
JVM IR: CCE on callable reference to Array constructor passed to inline function
IDE
KTIJ-15744
Reopening build.gradle.kts-based project reports MISSING_SCRIPT_BASE_CLASS KotlinBuildScript until re-import
KTIJ-19005
JDK 17: "PermittedSubclasses requires ASM9" exception multiple times per second during analysis
KTIJ-19504
IDE highlighting: Kotlin plugin 1.5.30 started showing some valid classes from multiplatform libraries as not existing
Native
KT-48591
Kotlin/Native: Char.isHighSurrogate and Char.isLowSurrogate return wrong result for macosArm64 and iosArm64 with compiler cache enabled
KT-48491
CInterop broke in Kotlin 1.5.30
Checksums
File |
Sha256 |
kotlin-compiler-1.5.31.zip |
661111286f3e5ac06aaf3a9403d869d9a96a176b62b141814be626a47249fe9e |
kotlin-native-linux-x86_64-1.5.31.tar.gz |
636b7e9e54eefa3fa1d284677a8ec2271d0f98b024a8a60127ef20a3badaae03 |
kotlin-native-macos-x86_64-1.5.31.tar.gz |
fde7224a8e04a6cd934ecbf55d4d51966f8a0668104f4316a76b3f38062d1ade |
kotlin-native-macos-aarch64-1.5.31.tar.gz |
fbd005e360253e7d7ff1cd78b7cbbe34df0592812676deada6620a53d469d803 |
kotlin-native-windows-x86_64-1.5.31.zip |
11c2e3378ea2e0121e9c3378e58f9813fc5f7850110c0e341739ab514f1379ca |
Kotlin 1.5.30
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-44261
Support RxJava 3 nullability annotations
KT-32443
Experimental declarations should be contagious even when they are not explicitly used
KT-45844
Forbid using experimental markers on override declarations
KT-45845
Forbid using experimental markers on getter
KT-46644
Resolve overrides for IrProperty on deserialization
KT-46967
Support class type parameters annotations in FIR
KT-47402
Native: optimize access to object declarations that have only const vals and no init blocks
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-45103
Direct invoke optimization
KT-47785
Compilation time increased when trying to compile AssertJ DB expression in 1.5.21
Fixes
KT-48361
INTEGER_OPERATOR_RESOLVE_WILL_CHANGE is not reported in some positions
KT-48180
JVM / IR: AssertionError: "Lambda with offset already exists" caused by calling inline function with default lambda parameter
KT-47328
JVM / IR: NoSuchFieldError with missing CHECKCAST
KT-48172
"IllegalStateException: Cannot serialize error type: [ERROR : ]" in 1.5.21 with java kotlin interop
KT-48230
JVM IR: CCE for multiple receivers case
KT-48262
"Inconsistent type" with JSpecify @NullMarked
KT-48167
JVM / IR: If Map#entrySet is implemented in an interface, Kotlin compiler generates incorrect code for its implementation
KT-47988
JVM / IR: "VerifyError: Bad type on operand stack" when invoking apply with a local method reference
KT-48163
JVM / IR: "VerifyError: Bad type on operand stack" when throwing result of smartcast
KT-47833
False positive "Type argument is not within its bounds " with upcasting in 1.5.30-M1
KT-47830
Some code doesn't compile with unrestricted builder inference
KT-39883
Deprecate computing constant values if complex boolean expressions in when condition branches and conditions of loops
KT-47037
Eliminate builder inference restrictions
KT-46726
IR + BuilderInference: AssertionError: Unbound private symbol on usage of this in a BuilderInference lambda
KT-43855
Support gradual introduction of new nullability annotations
KT-43142
FIR: Check UPPER_BOUND_VIOLATED for type alias constructors properly
KT-45228
Leaking builder inference type variables though callable references
KT-42270
NI: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER for BuilderInference with extension functions
KT-46029
JVM / IR: "Unbound private symbol: " when trying to save SequenceScope in property
KT-45258
Wrong CST between types which contain stub type
KT-45224
Type safety problem through leaking of the builder inference scope
KT-22852
Report diagnostics on implicit usages of experimental API
KT-22941
Experimental marker annotation with SOURCE retention is compiled without error
KT-24993
Inference for buildSequence/yield doesn't work for labeled lambdas
KT-31728
Incorrect EXPERIMENTAL_OVERRIDE_ERROR for override of experimental function in anonymous object
KT-33364
Kotlin/Native debugger: execution stops only at next line for breakpoint at when expression without parameter
KT-42139
NI: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER for emptyList / listOf (with no arguments) / emptyMap / mapOf (with no arguments) inside if block inside sequence
block
KT-44241
NI: BuilderInference regression
KT-44372
FIR: KClass::java cannot be resolved as callable reference
KT-44547
Native: wrong RTTI when overriding functions with equal signatures but different type arguments
KT-44571
Segfault on unnecessary int unboxing
KT-45083
Problem with property reference in builder inference
KT-45315
Deprecate (V)::a reference resolution to companion in FE 1.0
KT-46393
AE: "1 trailing arguments were found in Any type" for private function with implicit anonymous return type inside generic class
KT-46661
FIR: Investigate inference issue with self-types and star projection
KT-46775
[Native] [IR] Support multiple suspend lambdas as class supertypes
KT-46836
Error: Invalid LLVM module on inlineClasses external tests
KT-46838
NullPointerException: Parameter specified as non-null is null in CollectionsKt.joinToString()
KT-46896
Native IR: NPE when using irBuiltIns.suspendFunction
KT-46996
FIR: INFERENCE_NO_INFORMATION_FOR_PARAMETER on type aliases with non-trivial expansions
KT-47034
KtValueArgument.getArgumentExpression could lead to StubBasedPsiElementBase.notBoundInExistingAst
KT-47052
BuilderInference case with flatMapTo doesn't work properly
KT-47082
Stub type variable is leaked (reproduces with K/N during deserialization)
KT-47143
ClassicTypeSystemContext couldn't handle: Captured(*) in Kotlin 1.5.0
KT-47148
Type mismatch: inferred type is Any? but T? was expected
KT-47180
Forbid using OptIn markers on local variable, value parameter or field
KT-47181
Forbid using OptIn markers on types or type parameters
KT-47183
Segfault on int unboxing
KT-47208
Backend Internal error: Exception during IR lowering: assert at IrOverridingUtilKt.buildFakeOverrideMember
KT-47276
Nullability annotations without target are ignored if type enhancement improvements are enabled
KT-47450
StackOverflowException in psi2ir with many chained binary expressions
KT-47462
K/N: AssertionError: Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@6cb748db (NON-PUBLIC API): deserialized class Companion
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
...
Read more
Kotlin 1.5.30-RC
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 |
Kotlin 1.5.30-M1
Changelog
Compiler
New Features
KT-32443
Experimental declarations should be contagious even when they are not explicitly used
KT-45844
Forbid using experimental markers on override declarations
KT-45845
Forbid using experimental markers on getter
KT-46644
Resolve overrides for IrProperty on deserialization
KT-46967
Support class type parameters annotations in FIR
KT-47402
Native: optimize access to object declarations that have only const vals and no init blocks
Fixes
KT-22852
Report diagnostics on implicit usages of experimental API
KT-22941
Experimental marker annotation with SOURCE retention is compiled without error
KT-24993
Inference for buildSequence/yield doesn't work for labeled lambdas
KT-31728
Incorrect EXPERIMENTAL_OVERRIDE_ERROR for override of experimental function in anonymous object
KT-33364
Kotlin/Native debugger: execution stops only at next line for breakpoint at when expression without parameter
KT-42139
NI: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER for emptyList / listOf (with no arguments) / emptyMap / mapOf (with no arguments) inside if block inside sequence
block
KT-44241
NI: BuilderInference regression
KT-44372
FIR: KClass::java cannot be resolved as callable reference
KT-44547
Native: wrong RTTI when overriding functions with equal signatures but different type arguments
KT-44571
Segfault on unnecessary int unboxing
KT-45083
Problem with property reference in builder inference
KT-45315
Deprecate (V)::a reference resolution to companion in FE 1.0
KT-46393
AE: "1 trailing arguments were found in Any type" for private function with implicit anonymous return type inside generic class
KT-46661
FIR: Investigate inference issue with self-types and star projection
KT-46775
[Native] [IR] Support multiple suspend lambdas as class supertypes
KT-46836
Error: Invalid LLVM module on inlineClasses external tests
KT-46838
NullPointerException: Parameter specified as non-null is null in CollectionsKt.joinToString()
KT-46896
Native IR: NPE when using irBuiltIns.suspendFunction
KT-46996
FIR: INFERENCE_NO_INFORMATION_FOR_PARAMETER on type aliases with non-trivial expansions
KT-47034
KtValueArgument.getArgumentExpression could lead to StubBasedPsiElementBase.notBoundInExistingAst
KT-47052
BuilderInference case with flatMapTo doesn't work properly
KT-47082
Stub type variable is leaked (reproduces with K/N during deserialization)
KT-47143
ClassicTypeSystemContext couldn't handle: Captured(*) in Kotlin 1.5.0
KT-47148
Type mismatch: inferred type is Any? but T? was expected
KT-47180
Forbid using OptIn markers on local variable, value parameter or field
KT-47181
Forbid using OptIn markers on types or type parameters
KT-47183
Segfault on int unboxing
KT-47208
Backend Internal error: Exception during IR lowering: assert at IrOverridingUtilKt.buildFakeOverrideMember
KT-47276
Nullability annotations without target are ignored if type enhancement improvements are enabled
KT-47450
StackOverflowException in psi2ir with many chained binary expressions
KT-47462
K/N: AssertionError: Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@6cb748db (NON-PUBLIC API): deserialized class Companion
IDE
KT-44643
ISE: Could not generate LightClass for some declared in on initialisation by lazy
in a JVM module of a multiplatform project
IDE. Gradle Integration
KT-47163
KJS / Gradle: Could not resolve <artifact>
despite being resolvable & project buildable
IDE. JS
KT-47557
KJS: With NPM dependency IDEA import fails when performed before Gradle build
JavaScript
KT-38363
JS IR BE: support IC for lowerings
KT-45738
KJS / IR: Wrong generated code for when
statement
KT-46520
KJS / IR: ISE "Can't find name for declaration FUN name:CharArray_init_$Create$" on callable reference to Array constructor
KT-46551
KJS / IR: Add a basic sourcemap generation
Libraries
KT-47477
Could not resolve kotlin-test during project import in case of multiplatform with only JVM target platform
Native
KT-35001
warning: linking module flags 'SDK Version': IDs have conflicting values ('[2 x i32] [i32 13, i32 2]'
KT-43475
Kotlin/Native compiler: Including a static C library increased cross-compilation time from 3.5minutes to 1 hour 40 minutes
KT-44148
Escape analysis failure: Heap space out of memory
Native. C and ObjC Import
KT-46711
platform.windows._LARGE_INTEGER cannot be passed by value
Native. ObjC Export
KT-43780
Improve Swift/Obj-C ergonomics for object and companion object
KT-46431
KMP accessing a property of an anonymous inner class that inherits from an abstract class causes a 'NSGenericException', reason: '[Shared_kobjcc0 ] is abstract' exception.
KT-47042
Kotlin/Native: Concurrency Interoperability with Objective-C (Swift 5.5)
Native. Platforms
KT-44321
Support Apple Silicon without Rosetta 2
Reflection
KT-18277
InvalidProtocolBufferException: Stream closed on multithreaded access to built-ins data in reflection
KT-44977
Reflection: ClassCastException caused by annotations with "AnnotationTarget.TYPE" usage on array attributes access
Tools. CLI
KT-40979
CLI: Executing "kotlinc.bat" at a root path, errors are not reported with a correct filepath
KT-40994
CLI: Add documentation for -J argument in kotlinc -help
KT-46764
CLI: Java record defined in a single file root is not resolved
Tools. Commonizer
KT-45992
[Commonizer] Allow commonization of TypeAlias and Class with same name
KT-46716
[Commonizer] Analyze leaf source sets with original platform libraries
KT-46957
[Commonizer] Unresolved classifier: platform/posix/ptrdiff_t for linuxMips32
KT-47133
Forbid cinterop commonization with hierarchical commonization turned off
KT-47301
[Commonizer] Associative commonization
Tools. Compiler Plugins
KT-46723
Kotlin Lombok: JPS: config file is searched in directory relative to compiler daemon
KT-46739
@SerialInfo NPE with default parameter
Tools. Gradle
KT-13258
Kotlin compiler doesn't respect Gradle's "sourceCompatibility" and "targetCompatibility"
KT-43095
Add support for Java Toolchain to the Gradle plugin
KT-45611
KGP should declare JDK version as input
KT-47185
Migrate Gradle Integration tests to ...
Read more
Kotlin 1.5.21
Changelog
Compiler
KT-47320
"StringConcatException: Mismatched number of concat arguments" String concatenation fails when template contains special character
KT-47445
"definitely not null type parameters is only available since language version 1.6" error in cast expression
KT-47446
Improve warning message INTEGER_OPERATOR_RESOLVE_WILL_CHANGE
KT-47447
False positive INTEGER_OPERATOR_RESOLVE_WILL_CHANGE warning: "expression will be resolved to Int in future releases"
KT-47449
JVM / IR: ClassCastException IrStarProjectionImpl cannot be cast to IrTypeProjection
KT-47459
"IndexOutOfBoundsException: Index 0 out of bounds for length 0" caused by MarkertManager dependency
KT-47480
StackOverflowError: Recursion on erasion of raw type with interdependent type parameters
Tools. Compiler Plugins
KT-47161
Serializable class can't be inherited from serializable class in other module with: e: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't transform method node: write$Self
KT-47455
Kotlin lombok plugin NullPointerException
KT-47513
Lombok compiler plugin failed with 'Recursion detected in a lazy value under LockBasedStorageManager@1c21db60 (TopDownAnalyzer for JVM)'
Tools. Gradle
KT-47444
Gradle Plugin: Publishing project with "maven-publish" fails when dependency versions are omitted (NPE in MppDependencyRewritingUtilsKt.associateDependenciesWithActualModuleDependencies)
Tools. kapt
KT-47416
Kapt Gradle DSL ignores javaCompilerOptions in 1.5.20
Checksums
File |
Sha256 |
kotlin-compiler-1.5.21.zip |
f3313afdd6abf1b8c75c6292f4e41f2dbafefc8f6c72762c7ba9b3daeef5da59 |
kotlin-native-linux-1.5.21.tar.gz |
63330f898f307cb2330ef04a5d36ac4cd29128912a2d9a93b8cde5b7b99ec96f |
kotlin-native-macos-1.5.21.tar.gz |
3bf60142e04094112c64ca31d6f3a7382adf210bb222c8b03579bed0d3ff5611 |
kotlin-native-windows-1.5.21.zip |
e22212e58a39066ae976a45a8bc877cd2e2018fb9adc321b957779b38561c064 |