Skip to content

Kotlin 1.8.20-RC

Pre-release
Pre-release
Compare
Choose a tag to compare
@woainikk woainikk released this 08 Mar 10:44
· 61 commits to 1.8.20 since this release

Changelog

Backend. Wasm

  • KT-56584 K/Wasm: Can't link symbol class

Compiler

Fixes

  • KT-57053 Problem around anonymous objects in inline functions
  • KT-56965 K/N: linkDebugFrameworkIosArm64 tasks failing with UnsupportedOperationException: VAR name:disposables type:com.badoo.reaktive.disposable.CompositeDisposable [val]
  • KT-56815 compileKotlin task is stuck with while(true) and suspend function
  • KT-56258 VerifyError: Bad local variable type when using -Xdebug
  • KT-56847 Unresolved reference to Java annotation in Kotlin class with the same name packages
  • KT-56526 InvalidProtocolBufferException on reading module metadata compiled by K2 in 1.8.20
  • KT-56500 The type parameter TYPE_PARAMETER name:E index:0 variance: superTypes:[kotlin.Any?] reified:false is not defined in the referenced function FUN LOCAL_FUNCTION_FOR_LAMBDA
  • KT-56611 Native: new native caches are broken when KONAN_DATA_DIR is defined to a directory inside ~/.gradle
  • KT-56215 JVM: Object extension function nullable receiver null check false negative when object is null
  • KT-56033 Restore 'isMostPreciseContravariantArgument' function signature for compatibility
  • KT-56407 Backend Internal error: Exception during IR lowering during :daemon-common-new:compileKotlin
  • KT-56701 K2 (with LightTree) reports syntax errors without additional information
  • KT-56649 K2 uses 0-index for line numbers rather than 1-index
  • KT-56521 Static scope initializers sometimes not called when first accessed from interop
  • KT-49182 Strange cast from Unit to String
  • KT-55125 Difference in generated bytecode for open suspend functions of generic classes

IDE. Gradle. Script

  • KT-56941 Gradle KTS / Navigation: Go to declaration for Java types doesn't work

JavaScript

  • KT-56602 KJS / Serialization: polymorphicDefaultDeserializer unbound on Kotlin 1.8.20-Beta
  • KT-56580 KJS: languageVersionSettings string is unstable
  • KT-56581 KJS: Lock file for incremental cache
  • KT-56582 KJS: Function type interface reflection crashes the compiler in incremental build
  • KT-56469 KJS: BE Incremental rebuild spoils source map comment

Libraries

  • KT-55935 [Kotlin/JVM] Path.copyToRecursively does not work across file systems

Native

  • KT-56443 Native link task reports w: Cached libraries will not be used for optimized compilation

Tools. CLI

  • KT-56789 Metaspace memory leak in CoreJrtFileSystem
  • KT-56992 Performance test regression in Gradle when switching to Kotlin 1.8.20
  • KT-56925 Remove warning about assignment plugin
  • KT-57077 1.8.20-RC-243 shows Java 19 warnings even if configured with Java 17 toolchain

Tools. Compiler Plugins

  • KT-56487 Add more methods to DescriptorSerializerPlugin

Tools. Compiler plugins. Serialization

  • KT-56738 Unexpected SERIALIZER_NOT_FOUND when compiling against binary with enum
  • KT-56990 "AssertionError: SyntheticAccessorLowering should not attempt to modify other files" in kotlinx-serialization using @Serializer and List argument

Tools. Gradle

  • KT-56221 Gradle KTS: False positive Val cannot be reassigned when using an extension and its property with an implicit set operator
  • KT-55452 Values of the compiler arguments set via KotlinCompile task configuration are duplicated by the KaptGenerateStubs task
  • KT-56645 Gradle: KGP reports an incorrect resources processing task name for JVM projects
  • KT-55565 Consider de-duping or blocking standard addition of freeCompilerArgs to KaptGenerateStubsTask
  • KT-56414 Dependency locking and failed builds with Kotlin 1.8.10

Tools. Gradle. JS

  • KT-57068 KJS / Gradle: "Unable to find method 'kotlin.gradle.targets.js.dsl.KotlinJsBrowserDsl.testTask'" after updating to 1.8.20-Beta
  • KT-56999 K/JS: KotlinJsIrLink::rootCacheDirectory property must be public
  • KT-56765 K/JS: Several binaries use same cache directory
  • KT-56488 Debugger won't stop on breakpoints of JS browser test
  • KT-56719 KJS / Gradle: Compile sync task has to sync only changed files

Tools. Gradle. Multiplatform

  • KT-56729 commonizeCInterop: Duplicated libraries: co.touchlab:sqliter-driver-cinterop-sqlite3
  • KT-56510 Import with included plugin build may fail with OverlappingFileLockException during commonizeNativeDistribution

Tools. Kapt

  • KT-56635 KAPT / IR: "Unresolved reference: DaggerGeneratedCodeTest_AppComponent " caused by stub generation with Kotlin 1.8.20-Beta
  • KT-56360 Kapt with JVM IR changes fields order

Checksums

File Sha256
kotlin-compiler-1.8.20-RC.zip cd90d3fef3608f8866520c84f4fe729e6733b13cfa18bf93ebb52a2cf3f37b7b
kotlin-native-linux-x86_64-1.8.20-RC.tar.gz 35296775617118bc2e703f3e226bbb827885765be7001a9ebcd5cb68783ce323
kotlin-native-macos-x86_64-1.8.20-RC.tar.gz f76faf8063d9d170db2dc5bb1b5d442787b0cf69983aa0605c1da22f31ef33b7
kotlin-native-macos-aarch64-1.8.20-RC.tar.gz 45694d385d09eb0eb075fa08b1bbf5000289120e6de677b71504481010a170a7
kotlin-native-windows-x86_64-1.8.20-RC.zip 9a0ce3887a4fc188b209a3ceff2b9235b2bd5ac965b1259b62ac91b9ea914b0f