Skip to content

Releases

Kotlin 2.5.0-RC

Kotlin 2.5.0-RC Pre-release
Pre-release

Choose a tag to compare

@KotlinBuild KotlinBuild released this 11 Nov 10:19

Changelog

Analysis API. Standalone

  • KT-89902 Analysis API Standalone: JavaPsiFacade doesn't find Kotlin classes from binary libraries

Backend. Wasm

  • KT-91167 K/Wasm: suspend lambda containing a suspend call triggers unrelated file-property initialization

Compiler

  • KT-90315 Value classes resolved first as a supertype are treated as identity classes
  • KT-84904 Alpha release of Multi-Field Value Classes
  • KT-90707 Parser: "Expecting ';' after the last enum entry" when an enum entry named error has arguments or a body
  • KT-91112 Type inference: reified Enum inferred as Nothing for a function-reference extension call since Kotlin 2.5
  • KT-90589 K/N: Debug static framework with a Kotlin subclass of NSObject does not link without -dead_strip: undefined "_kfun:platform.darwin.NSObject#objc:*-impl"
  • KT-90321 K2 IDE: "Multiple plugins generated nested class with same name Companion" floods the IDE log for a class with @Slf4j (Lombok) and @Serializable
  • KT-89985 InnerClasses entries lack ACC_IDENTITY with -Xjvm-enable-preview on JVM target 28

IR. Inlining

  • KT-72464 [Native][JS][Wasm] Non-local return through suspend conversion breaks the IR inliner

JVM. Reflection

  • KT-91317 Reflection: IAE "fromIndex(1) > toIndex(0)" on KClass.members of stdlib inline classes
  • KT-90525 Reflection: "MutableCollectionKClassImpl cannot be cast to ClassBasedDeclarationContainer" from KType.classifier of annotated Java collection type

JavaScript

  • KT-91371 K/JS: extending a JsExport-ed interface breaks property access
  • KT-90564 K/JS, K/Wasm: top-level suspend function doesn't trigger file properties initialization
  • KT-90587 K/JS: Exported abstract suspend functions are not callable from JS
  • KT-90912 K/JS: IR-based TypeScript export loses abstract modifier on abstract suspend method with a default argument

Klibs

  • KT-91139 [Klib] Backward compatibility break: Kotlin 2.4.20+ miscompiles suspend conversions from KLIBs built by Kotlin ≀ 2.2
  • KT-90675 Native, Klibs: Value class '==' boxes because the deserializer doesn't recognize the old GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER origin

Libraries

  • KT-91066 Kotlin/Wasm: KClass.hashCode() allocates and hashes the qualified class name string on every call

Tools. Compiler Plugins

  • KT-90516 Lombok: Unexpected returnTypeRef during supertype generation for builder class
  • KT-90666 Lombok: disable @Builder annotation in Kotlin code due to many issues
  • KT-90086 Lombok: ClassCastException during supertype generation for EqualsAndHashCode with inheritance

Tools. Compiler plugins. Compose

  • KT-84055 Reference to lambda in lambda in function 'TextField' can not be evaluated
  • KT-90466 Compose compiler, Kotlin/Native: IrLinkageError "No function found for symbol" for lambda SAM-converted to @Composable fun interface from another module

Tools. Compiler plugins. Serialization

  • KT-91224 Kx Serialization: Regression in support of Java enums with Serializable annotation

Tools. Gradle

  • KT-91331 Deprecated Kotlin sourceSets in Android extension: block form doesn't report the error in Groovy DSL or in suppressed Kotlin DSL
  • KT-91330 Groovy DSL: kotlin { sourceSets { main {} } } in Android project fails with misleading "Could not find method main()"
  • KT-85935 KGP / Android: sourceSets deprecation not shown in DSL block form inside KotlinAndroidProjectExtension
  • KT-90672 Gradle: "configureEach(Action) on task set cannot be executed in the current context" when KotlinCompile is created lazily with AGP built-in Kotlin
  • KT-90997 Preserve behaviour of deprecated kotlin.internal.incremental.enableUnsafeOptimizationsForMultiplatform in 2.5.0

Tools. Gradle. JS

  • KT-90489 Rich TypeScript declarations ignore Long-as-BigInt enabled by target es2020
  • KT-90491 GenerateTypeScriptDefinitions task generates UMD declarations for ES module when target is es2015 or higher and module kind is not set
  • KT-90533 -Xes-long-as-bigint=true is ignored by Analysis API-based TypeScript declaration generation
  • KT-90519 KGP and BTA do not preserve -XXLanguage settings for Analysis API-based TypeScript declaration generation
  • KT-90366 -Xdts-use-unknown-instead-any is ignored by the new GenerateTypeScriptDefinitions task
  • KT-89797 KJS/KGP: Playwright tests fail to update after kotlin code changes
  • KT-90286 NodeJsExec ignores a custom executable

Tools. Gradle. Multiplatform

  • KT-90544 Gradle, Multiplatform: Publication iteration misses JS, Wasm and Native targets since 2.5.0-Beta2 (after Kotlin Archive publishing changes)

Tools. Gradle. Swift Export

  • KT-90738 swiftPackageIntegration: Release build fails to link exported package (undefined symbol KotlinRuntimeSupport_linkAnchor)

Tools. Incremental Compile

  • KT-91153 Incremental compilation failed: The following FqNames can't be derived from DirtyData.dirtyLookupSymbols

Kotlin 2.5.0-Beta2

Kotlin 2.5.0-Beta2 Pre-release
Pre-release

Choose a tag to compare

@KotlinBuild KotlinBuild released this 21 Oct 10:43

Changelog

Analysis API

  • KT-60484 Analysis API: add support for KtType pointers similar to KtSymbolPointer
  • KT-67786 Analysis API: Implement improved KtType hierarchy and design
  • KT-68462 Analysis API: Integrate project-structure module into analysis-api and analysis-api-platform-interface
  • KT-68341 Analysis API: Expanded function types from libraries don't have an abbreviated type
  • KT-68857 Analysis API: Refactor annotations
  • KT-65215 Analysis API: Distinguish APIs for Analysis API users and platforms
  • KT-68884 Analysis API: Rename/deprecate/remove declarations as part of Stabilization
  • KT-69055 Analysis API: Stabilize KaScopes
  • KT-61775 Analysis API: KtKClassAnnotationValue lacks complete type information
  • KT-60884 Analysis API: Improve standalone mode project model creation

Analysis API. FIR

Performance Improvements

  • KT-60240 K2: optimize FirElementBuilder#getOrBuildFirForNonKtFileElement for KtTypeReference case
  • KT-76375 ContextCollector: terminate search if no elements were found with a designation
  • KT-86758 Don't require body resolution to obtain an explicit backing field
  • KT-75496 Doesn't resolve the entire designation path to the body phase for diagnostics

Fixes

  • KT-74654 K2 Analysis API: InvalidFirElementTypeException with annotated non-local destructuring declaration
  • KT-81100 Support jvmTargetProvider in low-level analysis API
  • KT-75470 ContextCollector: potentially incorrect scope for super type call
  • KT-79057 Fix all // IGNORE_PHASE_VERIFICATION: invalid code inside annotations directives
  • KT-77041 Expected is FirResolvedDeclarationStatus, but was FirDeclarationStatusImpl
  • KT-60609 K2 IDE: Navigation to super class of annotation opens Any instead of written super type
  • KT-80721 K2 AA. "FirDeclaration was not found for class KtTypeParameter, fir is null" with generic type parameter in object expression
  • KT-64899 K2: PsiRawFirBuilder forces AST loading for scripts
  • KT-85627 AA: LLFlightRecorder initialization fails on runtimes without jdk.jfr
  • KT-86185 Analysis API: Make FirDesignation internal by removing the leak through UsualClassTypeQualifierBuilder
  • KT-85410 LLFirTypeTargetResolver: add more type guards
  • KT-88111 K2: Analysis API: make FileStructure element computation fully lazy

Analysis API. Infrastructure

  • KT-89711 test-data-manager is incompatible with Isolated Projects
  • KT-87672 Eliminate class duplication in the Analysis API JARs
  • KT-84914 Do not publish analysis-api-test-framework
  • KT-89119 Enforce KaInternals prefix name schema

Analysis API. Light Classes

  • KT-87399 LightClassUtil.getLightClassPropertyMethods returns wrong setter when JvmName annotation is used
  • KT-70427 SLC: non-abstract interface method generated as default with -jvm-default=disable option
  • KT-88498 Support multi-field value classes in light classes
  • KT-89316 SLC: DefaultImpls light class exposes @JvmStatic members of the interface companion object
  • KT-89322 UAST: NPE accessing containingFile of UParameter for mapped collection method
  • KT-89073 SLC: @JvmOverloads + @JvmExposeBoxed("bar") methods are exposed with the original name
  • KT-84373 Implement PsiMethod#isDefaultConstructor
  • KT-89204 SLC: False positive "unresolved reference" in Java for interface companion block members

Analysis API. PSI

  • KT-80780 KtPsiUtil#getEnclosingElementForLocalDeclaration should return KtClassBody for enum entries members
  • KT-89846 PSI: Kotlin overrides of standard PsiElement mutation methods throw IllegalStateException without KtPsiMutationService
  • KT-85052 Move mutation methods out of the Kotlin PSI
  • KT-88443 Advance DeprecationLevel for PSI declarations deprecated in 2026.2 and earlier

Analysis API. Providers and Caches

  • KT-71359 Perform validity checks before session acquisition
  • KT-89816 Analysis API tests: low-memory cache cleanup invalidates sessions in the middle of a test
  • KT-86402 False positive MISSING_DEPENDENCY_SUPERCLASS when using Scala case class in Kotlin

Analysis API. Standalone

  • KT-84851 Analysis API Standalone: 75% of CPU time spent in StringsKt.split via trie-based library scopes
  • KT-88362 PsiMethod.findSuperMethods() always returns an empty array
  • KT-61404 Analysis API: implement proper library publishing structure
  • KT-85112 AA does not see packages from unpacked klibs

Analysis API. Stubs and Decompilation

  • KT-80758 Consider to drop KotlinClassOrObjectStub#isLocal
  • KT-81203 Get rid of deprecated usage at ClsClassFinder.isKotlinInternalCompiledFile
  • KT-88772 Refine stubs surface
  • KT-89376 Rethink decompiler dependencies

Analysis API. Surface

New Features

  • KT-85384 Provide use-site-aware API for Light Classes
  • KT-88496 Support multi-field inline classes in Analysis API Surface
  • KT-78862 Provide KaSymbol -> PsiElement API

Fixes

  • KT-88129 Advance DeprecationLevel for declarations deprecated in 2026.2 and earlier
  • KT-73570 Merge implementation of KaExpressionTypeProvider.returnType with KaCallableSymbol.returnType
  • KT-86591 Rethink how the context parameters feature could be integrated into the Analysis API Surface
  • KT-82176 KaFirUsualClassType has incorrect type argument for generic local class in generic function
  • KT-66192 Analysis API: Improve render customizability
  • KT-83199 Clarify API around extension points
  • KT-77280 Rename KaPropertyAccessorSymbol#isCustom to isNotDefault
  • KT-60483 Analysis API: add isTailrec property to KtFunctionSymbol
  • KT-68882 Analysis API: Refactor KaSymbols
  • KT-55124 Design common ancestor for KtValueParameter and KtReceiverParameterSymbol
  • KT-53669 Analysis API: redesign KtSymbolOrigin to distinguish kotlin/java source/library declarations

Backend. Wasm

Performance Improvements

  • KT-88469 K/Wasm: consider inlining suspendCoroutineUninterceptedOrReturn and getCoroutineContext intrinsics on 2nd Stage

Fixes

  • KT-89394 [Wasm] stop creating of CoroutineImplStackSwitching at the call cite of suspendCoroutineUninterceptedOrReturn
  • KT-90119 K/Wasm: ArenaLikeAllocator.allocationsToFree is only cleared on freeAllComponentModelReallocAllocatedMemory()
  • KT-89267 K/Wasm: calling a (T) -> R lambda with an argument that isn...
Read more

Kotlin 2.4.21

Choose a tag to compare

@KotlinBuild KotlinBuild released this 08 Oct 09:25

Changelog

Backend. Wasm

  • KT-89267 K/Wasm: calling a (T) -> R lambda with an argument that isn't a T traps instead of throwing ClassCastException

JVM. Reflection

  • KT-89280 NoSuchElementException in argumentsMakeSenseOnlyForMutableContainer for Java non-static inner class of generic outer class
  • KT-80710 Reflection: change KCallable representation to avoid dependency on K1

JavaScript

  • KT-89449 Kotlin/JS: Member names no longer minified in production
  • KT-89363 KJS. Regular class with companion can't extend external class

Tools. Compiler plugins. Serialization

  • KT-89275 Kotlin/Wasm: Invalid Wasm is emitted for a @Serializable generic class with a class upper bound

Tools. Gradle. Native

  • KT-89285 SwiftPM import results in flooded log
  • KT-86251 K/N: Flaky linkDebugTestLinuxX64 failure with "truncated or malformed archive" on libstdlib-cache.a

Tools. Scripts

  • KT-89247 Kotlin Script: NoClassDefFoundError on 2nd execution with transitive dependency from imported script
  • KT-89220 JSR-223: generic Java bindings break all subsequent eval() calls
  • KT-88458 Audit closeable resource usage
  • KT-88453 VirtualFileScriptSource.text leaks an unclosed file stream β€” script source file handle held until GC, blocks file deletion on Windows

Kotlin 2.4.21-RC

Kotlin 2.4.21-RC Pre-release
Pre-release

Choose a tag to compare

@KotlinBuild KotlinBuild released this 30 Sep 11:30

Changelog

Backend. Wasm

  • KT-89267 K/Wasm: calling a (T) -> R lambda with an argument that isn't a T traps instead of throwing ClassCastException

JVM. Reflection

  • KT-89280 NoSuchElementException in argumentsMakeSenseOnlyForMutableContainer for Java non-static inner class of generic outer class
  • KT-80710 Reflection: change KCallable representation to avoid dependency on K1

JavaScript

  • KT-89449 Kotlin/JS: Member names no longer minified in production
  • KT-89363 KJS. Regular class with companion can't extend external class

Tools. Compiler plugins. Serialization

  • KT-89275 Kotlin/Wasm: Invalid Wasm is emitted for a @Serializable generic class with a class upper bound

Tools. Gradle. Native

  • KT-89285 SwiftPM import results in flooded log
  • KT-86251 K/N: Flaky linkDebugTestLinuxX64 failure with "truncated or malformed archive" on libstdlib-cache.a

Tools. Scripts

  • KT-89247 Kotlin Script: NoClassDefFoundError on 2nd execution with transitive dependency from imported script
  • KT-89220 JSR-223: generic Java bindings break all subsequent eval() calls
  • KT-88458 Audit closeable resource usage
  • KT-88453 VirtualFileScriptSource.text leaks an unclosed file stream β€” script source file handle held until GC, blocks file deletion on Windows

Kotlin 2.5.0-Beta1

Kotlin 2.5.0-Beta1 Pre-release
Pre-release

Choose a tag to compare

@KotlinBuild KotlinBuild released this 23 Sep 12:02

Changelog

Analysis API

  • KT-88945 Analysis API: annotation resolution drops a class id when a source annotation shadows a library one
  • KT-87460 Flaky (Embeddable)SwiftExport tests
  • KT-68896 Support VirtualFile binary dependency inputs to Analysis API modules
  • KT-65417 K2 IDE: KTOR false positive expect-actual matching error on enum class because of implicit clone() in non-JVM source sets

Analysis API. FIR

  • KT-88962 False negative [AMBIGUOUS_ANNOTATION_ARGUMENT] diagnostic in some corner cases
  • KT-87651 [Analysis API] Unexpected FIR status exception on SAM interfaces
  • KT-87572 Symbols from companion blocks have dispatchReceiver in stub-based version
  • KT-69727 K2 IDE. Wrong error in the editor on calling clone function of actual enum instance in non-jvm platform
  • KT-69726 FP errors on declaring fun clone() in actual enum in not-jvm source-set
  • KT-72660 ISE: Recursive update at org.jetbrains.kotlin.analysis.low.level.api.fir.caches.FirCaffeineCache.getValue
  • KT-62892 K2 IDE. Java outer class from other module is not resolved when nested class is accessed with fq name in a type position

Analysis API. Infrastructure

  • KT-84914 Do not publish analysis-api-test-framework
  • KT-87672 Eliminate class duplication in the Analysis API JARs
  • KT-87998 Move out Standalone components from the 'kotlin-analysis-api-surface' and 'kotlin-analysis-api-implementation'
  • KT-88404 Merge the decompiler text and stubs into one test case
  • KT-88371 Optimize symbol light classes tests
  • KT-87607 Test Federation: Review domain Analysis API Smoke & Contract tests
  • KT-86787 Stop publish analysis-api-fe10-for-ide
  • KT-87593 Migrate Analysis API tests on JDK 11
  • KT-87529 Test Data Manager: introduce a separate task for checks

Analysis API. Light Classes

  • KT-57537 SLC: propagate default parameter value from (@JvmOverloads) expect declarations to actual declarations
  • KT-88879 Value classes / JvmExposeBoxed: false-negative resolve for overridden exposed functions
  • KT-88861 Value classes / JvmExposeBoxed: internal method from value class is shown as valid call on java side but cannot be compiled
  • KT-88805 SLC: @JvmInline value classis treated asPsiClass#isValueClass`
  • KT-65385 K2 IDE: Light classes incorrectly expose Companion class and the corresponding static field if the companion object is generated by a compiler plugin
  • KT-67711 K2: Pointer already disposed from SLC/AI

Analysis API. PSI

  • KT-89032 Missing PSI utilities for companion blocks
  • KT-88925 Restrict the KtElement hierarchy with @SubclassOptInRequired
  • KT-88788 Refine the new resolution API (PSI-part)
  • KT-74070 Cover the Kotlin PSI with KDocs
  • KT-87819 UseScope of private interfaces is incorrect
  • KT-85052 Move mutation methods out of the Kotlin PSI

Analysis API. Providers and Caches

  • KT-77194 Analysis API: Move union and intersection scope merge strategies to the Analysis API
  • KT-87231 Analysis API: Fallback dependencies must have a binary-only base content scope
  • KT-86402 False positive MISSING_DEPENDENCY_SUPERCLASS when using Scala case class in Kotlin
  • KT-87680 Analysis API: LL FIR sessions contain redundant BuiltinTypes instances

Analysis API. Standalone

  • KT-89242 Analysis API Standalone: KLIB/JAR file handles remain open after session disposal
  • KT-61404 Analysis API: implement proper library publishing structure
  • KT-88362 PsiMethod.findSuperMethods() always returns an empty array
  • KT-84851 Analysis API Standalone: 75% of CPU time spent in StringsKt.split via trie-based library scopes

Analysis API. Stubs and Decompilation

New Features

  • KT-10793 Improve decompiled text for annotations
  • KT-87857 Support strict equals in stubs
  • KT-85756 Support annotation arguments in the decompiler

Performance Improvements

  • KT-88067 Implement stub-based initializer for constant properties
  • KT-88060 Make KtParenthesizedExpression stub-based
  • KT-79396 Make KtBinaryExpression stub-based
  • KT-79397 Make KtUnaryExpression stub-based
  • KT-71787 PsiRawFirBuilder.Visitor#visitStringTemplateExpression forces AST loading

Fixes

  • KT-88984 compiler-common and analysis-api-impl-base cyclic depend on each other
  • KT-78356 Migrate stubs from stub element type to stub factories
  • KT-88500 Support multi-field value classes in Analysis API stubs / decompiler
  • KT-52806 Store type in callable stubs when callable have implicit type and trivial initializer
  • KT-77096 Implement more stub-based annotation arguments

Analysis API. Surface

New Features

  • KT-84255 Expose possible smart casts from ContextCollector in KaScopeContext
  • KT-88985 Refine the new resolution API around error handling
  • KT-88521 Analysis API surface: support "Strict equals" (equality bound types) language feature
  • KT-86610 Rework KaDiagnosticProvider to be more flexible
  • KT-68881 Analysis API: Introduce KaType.classId
  • KT-87311 Propagate psi from generated declarations to KaSymbols

Fixes

  • KT-84186 Unresolved annotation ClassId returns ""
  • KT-89175 Add contracts to the new resolution utilities
  • KT-88767 Refine the new resolution API
  • KT-87557 'Analysis API Public API Checks' run configuration should include the artifacts checks
  • KT-89030 [Analysis API] Generalize KaFirNestedInLocalClassFromCompilerPluginSymbolPointer
  • KT-73195 AA FIR: missing annotations on function literal
  • KT-82397 KaFunctionType should offer context parameter types, not context receivers
  • KT-88645 Stabilize KtResolvable(Call)
  • KT-88489 resolveToCallCandidates throws ClassCastException for callable reference expressions resolveToCallCandidates
  • KT-85528 Move diagnostic classes out of analysis-api-fir
  • KT-63221 K2: Analysis API: rework getDiagnosticsForElement API
  • KT-87210 KaSubstitutor.Empty shouldn't be a class
  • KT-75549 Deprecate KaTypeProvider#collectImplicitReceiverTypes
  • KT-54508 Re-design 'javaGetterName' and 'javaSetterName'
  • KT-86591 Rethink how the context parameters feature could be integrated into the Analysis API Surface
  • [KT-87564](https://youtrack.jetbrains.c...
Read more

Kotlin 2.4.20

Choose a tag to compare

@KotlinBuild KotlinBuild released this 07 Sep 10:31

Changelog

Analysis API

  • KT-86546 Check suspicious when over ConeKotlinType in ConeTypeCompatibilityChecker
  • KT-85418 Implement an API for accessing deserialized file annotations in Analysis API
  • KT-74448 K2. False positive MISSING_DEPENDENCY_SUPERCLASS in LinkedListTest.kt, kotlinx.coroutines
  • KT-85856 containingSymbol of constructor property differs for local and non-local classes
  • KT-65417 K2 IDE: KTOR false positive expect-actual matching error on enum class because of implicit clone() in non-JVM source sets

Analysis API. Code Compilation

  • KT-76457 K2 IDE / KMP Debugger: KISEWA β€œCannot compile a common source without a JVM counterpart” on evaluating inline fun from common module inside jvm

Analysis API. FIR

  • KT-70552 No expects for actual
  • KT-69727 K2 IDE. Wrong error in the editor on calling clone function of actual enum instance in non-jvm platform
  • KT-69726 FP errors on declaring fun clone() in actual enum in not-jvm source-set
  • KT-86014 Types are broken after remove parameter through change signature
  • KT-86363 KotlinIllegalArgumentExceptionWithAttachments: No dangling modifier found on companion blocks
  • KT-86147 Drop kotlin.parallel.resolve.under.global.lock registry key
  • KT-85543 Avoid lazy resolve for the contracts phase if no constracts might be resolved

Analysis API. Infrastructure

  • KT-84914 Do not publish analysis-api-test-framework
  • KT-86986 kotlin-compiler-common-for-ide bundles unrelated Analysis API modules
  • KT-86186 Analysis API: Codebase tests run twice in some analysis modules β€” pick a single JUnit runner and migrate
  • KT-85360 Drop kotlin-compiler-testdata-for-ide artifact
  • KT-85585 Simplify the dependencies graph for the Analysis API modules
  • KT-85381 Remove tests for the FE10 implementation

Analysis API. Light Classes

New Features

  • KT-84645 Support resolving to companion block members & extensions from Java (light classes)
  • KT-80775 Support PsiClass#getRecordComponents in light classes

Fixes

  • KT-57537 SLC: propagate default parameter value from (@JvmOverloads) expect declarations to actual declarations
  • KT-85040 [Analysis API] Improve Java / Kotlin interop in KMP projects
  • KT-87301 SymbolLightAccessorMethod#isValid returns false for delegated properties
  • KT-87171 SLC: non-mapped Kotlin collection supertype is dropped from supertype list
  • KT-87250 JvmExposeBoxed: light classes shouldn't be autogenerated for private declarations
  • KT-70428 AA: good code is red when a Java class extends a Kotlin class implementing MutableList by delegation
  • KT-63568 Symbol Light Classes: KtAnnotationApplicationWithArgumentsInfo.normalizedArguments() may work incorrectly when psi is not set
  • KT-36740 MPP: False-positive incompatible types in .java when using expect-class returned by non-expect member from common when actual is actual typealias
  • KT-67749 Analysis API: Symbol Light classes should be available only to pure JVM sources
  • KT-68169 K2 IDE. KMP. False positive type mismatch in java file of jvm source-set when using common declaration which expects String
  • KT-37783 KMP Java Interop: JVM-only methods on actual superclass not resolved in Java for common subclass
  • KT-40059 Provide type correction for expect/actual types used from Java-code
  • KT-71429 MPP: False positive "Function1 is not a functional interface" when calling code from Common in Java
  • KT-70426 SLC: kotlin.Collection#size is not exposed by default
  • KT-60480 Symbol Light Classes: Classes implementing kotlin.collections.* interfaces don't implement all methods from the corresponding java.util.* interfaces
  • KT-36991 IDE: "both methods have same erasure" for Java classes directly or indirectly extending Kotlin collections
  • KT-22594 KotlinCollection.getSize is not highlighted as an error in Java

Analysis API. PSI

  • KT-84925 Move KtReference to the Kotlin IntelliJ plugin
  • KT-85052 Move mutation methods out of the Kotlin PSI
  • KT-85427 Use factory-like pattern instead of reflection in KtNodeType
  • KT-84789 Ensure all KtClassBody.parent usages are correct
  • KT-85154 PSI: "AE: parent is ERROR_ELEMENT" with top-level destructuring declaration

Analysis API. Providers and Caches

  • KT-82220 Analysis API: Support platform-specific session components and checkers in metadata sessions
  • KT-76526 Incorrect built-in module is provided for non-JVM sources in Standalone

Analysis API. Standalone

  • KT-83191 Analysis API: JvmDependenciesIndexImpl performs very poorly for large classpaths
  • KT-61404 Analysis API: implement proper library publishing structure
  • KT-85112 AA does not see packages from unpacked klibs
  • KT-86417 Support parameters in 'getExpectsForActual()'
  • KT-84916 Metadata stub deserializers aren't properly set up for Analysis API Standalone

Analysis API. Stubs and Decompilation

  • KT-86250 KotlinIllegalArgumentExceptionWithAttachments: No fir element was found for KtDestructuringDeclaration on destructuring declaration typing
  • KT-86520 KotlinDeclarationInCompiledFileSearcher doesn't support visibility-mangled declarations
  • KT-64901 Inconsistency between AST and Stub tree in the case of non-local destructuring declarations
  • KT-84444 Support stubs for companion blocks & extensions

Analysis API. Surface

New Features

  • KT-73214 Add KaScope#declarations with name filter
  • KT-69085 Provide API to retrieve label/name from KtFunctionLikeSymbol
  • KT-70771 KaLocalVariableSymbol: support isDelegatedProperty
  • KT-85037 Add API for KaFunctionType's returnType modification
  • KT-80460 AA: Introduce KtExpression.isStableForSmartCasting API
  • KT-66566 AA: api to create functional types
  • KT-65912 Analysis API: Implement type building API for all KtType

Performance Improvements

  • KT-70021 Analysis API: optimize KaFirExpressionTypeProvider.expressionType for simple cases

Fixes

  • KT-66039 K2: Analysis API: redesign resolution API
  • KT-86394 Resolve from KDoc reference is inconsistent with source code
  • KT-87337 Integrate KaContextParameterOwnerSymbol into KaCallableSymbol
  • KT-78234 Analysis API: Context parameters for accessors
  • KT-86786 Investigate suspicious when over ConeKotlinType in ConeKotlinType.getDirectSupertypes
  • KT-72902 Shouldn't KaSymbolProvider#findClass return KaNamedClassSymbol?
  • KT-87237 No expected type inside arrayOf in a...
Read more

Kotlin 2.4.20-RC3

Kotlin 2.4.20-RC3 Pre-release
Pre-release

Choose a tag to compare

@KotlinBuild KotlinBuild released this 02 Sep 09:49

Changelog

Compiler

  • KT-88953 CCE caused by suspend conversion of nullable argument to nullable expected type

Kotlin 2.4.20-RC2

Kotlin 2.4.20-RC2 Pre-release
Pre-release

Choose a tag to compare

@KotlinBuild KotlinBuild released this 26 Aug 10:02

Changelog

Compiler

  • KT-88316 K/N: StackOverflowError in CastsOptimization when two nullable local variables are assigned to each other across nested loops

Compose compiler

  • b/549552317 Fixed a bug that, in certain cases, prevented execution of non-local return statements inside lambdas called from when expressions.

JavaScript

  • KT-88571 K/JS: "llegalStateException: Internal error: cannot find external signature" caused by @Serializable enum in 2.4.20-RC

Tools. CLI

  • KT-88475 IncrementalCompilationComponents instances are not being called anymore

Tools. Gradle. Wasm

  • KT-88566 K/Wasm: Webpack configuration generated after user defined chunks from the webpack.config.d directory

Kotlin 2.4.20-RC

Kotlin 2.4.20-RC Pre-release
Pre-release

Choose a tag to compare

@KotlinBuild KotlinBuild released this 12 Aug 09:36

Changelog

Backend. J2KLIB

  • KT-88165 Add Support for -XheaderModeType=compilation to improve header compilation performance
  • KT-86239 [JKLIB] Investigate which type system context is needed in JklibIrLinker
  • KT-88306 [JKLIB] Unbound symbols for kotlin.coroutines.SuspendFunctionN
  • KT-88120 [JKLIB] Add -jvm-target to K2JKlibCompilerArguments
  • KT-88176 [JKLIB] DeserializationStrategy.WITH_INLINE_BODIES when deserializaing dependencies
  • KT-88163 Allow to disable firAggressivePrunner for Jklib

Compiler

  • KT-87499 ClassCastException "Float cannot be cast to Unit" when a suspend function's result is discarded in a when-branch
  • KT-87983 CCE on member extension property delegated to bound property reference
  • KT-85403 kotlin.NoWhenBranchMatchedException on Kotlin Native with sealed interface
  • KT-87922 K1FakeDescriptorsForReferencesKt classes duplicated between kotlin-scripting-compiler-embeddable and kotlin-build-tools-impl
  • KT-86657 Native: turn on incremental compilation by default

Compose compiler

  • b/543684938 Fix composable singleton in function with type parameters
  • b/537617330 Fixed a bug that caused miscompilation of cross-module calls
    Β Β Β Β Β Β to getters and setters, causing spurious runtime errors.

JVM. Reflection

  • KT-87369 Reflection: KClass.members fails on Java class with self-referential raw type bounds

Tools. Build Tools API

  • KT-88348 MessageCollector in IncrementalCompilerRunner drops diagnostics IDs
  • KT-87743 Make KotlinCoreEnvironment.disposeApplicationEnvironment() unnecessary for K2 BTA compilation

Tools. CLI

  • KT-87868 In-process compilation via CLI/Build Tools API pays a large ThreadMXBean.getCurrentThreadUserTime penalty on Linux: PerformanceManager.measureSideTime measures unconditionally around every class file read

Tools. Compiler Plugins

  • KT-88179 Power-assert: IrGenerationExtensionException (StringIndexOutOfBoundsException) when assert() wraps a context-parameter function call

Tools. Compiler plugins. Compose

  • KT-88028 Compose compiler: IndexOutOfBoundsException in ComposableTargetAnnotationsTransformer when overriding a @Composable function with default parameter in another module

Tools. Gradle

  • KT-87994 Run Gradle integration tests against Gradle 9.7
  • KT-87993 Compile against Gradle API 9.7
  • KT-87256 KotlincOutputParser fails to parse compilation errors under Gradle when task path prefixes are enabled (Kotlin 2.4.20-Beta1)
  • KT-88084 Each build leaves a strong reference to an instance of BuildMetricsService
  • KT-87911 Report an actionable diagnostic when .kar files reach compilation classpaths in Kotlin 2.4.20
  • KT-86040 Run tests against the Gradle 9.6.0 release

Tools. Gradle. Multiplatform

  • KT-87790 Kotlin 2.4.0 increases Gradle sync times
  • KT-88104 dumpXcodebuildArgs task fails if the root build directory is removed
  • KT-88154 Swift PM lock file is ignored on switching version from exact to from

Tools. Gradle. Wasm

  • KT-88115 "Your lockfile needs to be updated": Outdated bundled yarn.lock breaks kotlinWasmToolingSetup with --frozen-lockfile

Tools. Scripts

  • KT-87958 K2 scripting: FirPropertyImpl transformation crash when using class from @file:Import-ed script in 2.4.0+

Kotlin 2.4.20-Beta2

Kotlin 2.4.20-Beta2 Pre-release
Pre-release

Choose a tag to compare

@KotlinBuild KotlinBuild released this 22 Jul 11:41

Changelog

Analysis API

  • KT-86546 Check suspicious when over ConeKotlinType in ConeTypeCompatibilityChecker
  • KT-65417 K2 IDE: KTOR false positive expect-actual matching error on enum class because of implicit clone() in non-JVM source sets

Analysis API. FIR

  • KT-69727 K2 IDE. Wrong error in the editor on calling clone function of actual enum instance in non-jvm platform
  • KT-69726 FP errors on declaring fun clone() in actual enum in not-jvm source-set

Analysis API. Infrastructure

  • KT-84914 Do not publish analysis-api-test-framework
  • KT-86986 kotlin-compiler-common-for-ide bundles unrelated Analysis API modules

Analysis API. Light Classes

  • KT-87301 SymbolLightAccessorMethod#isValid returns false for delegated properties
  • KT-87171 SLC: non-mapped Kotlin collection supertype is dropped from supertype list
  • KT-87250 JvmExposeBoxed: light classes shouldn't be autogenerated for private declarations

Analysis API. PSI

  • KT-84925 Move KtReference to the Kotlin IntelliJ plugin

Analysis API. Standalone

  • KT-61404 Analysis API: implement proper library publishing structure

Analysis API. Stubs and Decompilation

  • KT-86250 KotlinIllegalArgumentExceptionWithAttachments: No fir element was found for KtDestructuringDeclaration on destructuring declaration typing
  • KT-64901 Inconsistency between AST and Stub tree in the case of non-local destructuring declarations

Analysis API. Surface

Performance Improvements

  • KT-70021 Analysis API: optimize KaFirExpressionTypeProvider.expressionType for simple cases

Fixes

  • KT-87337 Integrate KaContextParameterOwnerSymbol into KaCallableSymbol
  • KT-78234 Analysis API: Context parameters for accessors
  • KT-86786 Investigate suspicious when over ConeKotlinType in ConeKotlinType.getDirectSupertypes
  • KT-72902 Shouldn't KaSymbolProvider#findClass return KaNamedClassSymbol?
  • KT-87237 No expected type inside arrayOf in annotation entries
  • KT-87143 findKDoc returns parent property KDoc for accessors of an overriding property
  • KT-83224 Support "Compile-time functions" in the Analysis API
  • KT-87174 Expected class KaFirSymbol instead of class KaFirPackageSymbol exception
  • KT-87199 [Analysis API] Remove KaEnumEntryInitializerSymbol
  • KT-85206 Provide information about potentially removable context-sensitive resolution qualifiers via Analysis API
  • KT-86872 KtOperationReferenceExpression should be KtResolvableCall
  • KT-85800 Analysis API: The internal utility PrettyPrinter is used in the public API surface
  • KT-73796 Consider "KaAnnotation#useSiteTarget" removal
  • KT-84184 [Analysis API] Provide a unification substitutor API

Backend. Wasm

  • KT-86242 K/Wasm: deprecate and prohibit using wasmExports
  • KT-87639 [Wasm] Multimodule wasm fails on Pointer usages
  • KT-86245 K/Wasm: provide an API to get a reference to wasm memory
  • KT-76207 K/Wasm: prototype generating suspend functions with stack-switching proposal
  • KT-73452 K/Wasm: turning on range checks by default
  • KT-83159 K/Wasm: generate one common base class fun interfaces (including Function*)
  • KT-83356 K/Wasm: Difference in behavior on nested class initialization (for enums?)
  • KT-84267 K/Wasm: init order of companion objects is different from JVM
  • KT-86192 K/Wasm: Raise a warning on usage of top-level require in JsFun
  • KT-86822 K/Wasm: don't cast the result of calling callable references with Unit return type

Compiler

New Features

  • KT-85925 Native: rework virtual trampolines machinery
  • KT-80373 Add initial support for release compiler caches
  • KT-86018 Short-form of name-based destructuring for multi-field value classes
  • KT-86406 Swift Export: support supercalls for cross-language inheritance
  • KT-77616 Native: consider adding an annotation that enforces thread state switching for a @SymbolName external fun`
  • KT-86410 [KMP] Implement acceptance of JVM IC metadata from previous compilation

Performance Improvements

  • KT-85621 Native: fix optimization in CastsOptimization

Fixes

  • KT-86525 JvmExposeBoxed: Inconsistent number of parameters during reflection
  • KT-87606 Compiler crash on red code with redeclaration of type parameter which is used as expression
  • KT-87335 Context parameters: wrong LINENUMBER emitted for context argument loads in JVM bytecode
  • KT-87245 Report UnsupportedFeature on ExplicitContextArgument
  • KT-87577 Compiler crash on red code with ambiguous type parameter used as expression
  • KT-72706 Confusing "INVISIBLE_REFERENCE" when calling private constructor
  • KT-86957 Warning on the underscore variable is not reported for java.lang.Void call
  • KT-87261 K/N debug: 'is' check miscompilation β€” local variable reports wrong type when two smart-cast extractions precede an inline loop
  • KT-87507 False-positive ABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTED on fake-override with value parameter of type missing in dependencies
  • KT-87439 Postpone UnitConversionsOnArbitraryExpressions indefinetely
  • KT-87434 JAVA_CLASS_ON_COMPANION not reported when companion accessed through typealias
  • KT-64622 [K/N] ar utility fails with symbol @ in module/klib name on Linux with static cache
  • KT-84037 Native: rework ar invocations in the compiler
  • KT-87339 JVM: Support recursive type provided as an argument of typeOf
  • KT-86551 Check suspicious when over ConeKotlinType in FirExposedVisibilityDeclarationChecker#findVisibilityExposure
  • KT-87395 StackOverflowError in return value checker when a Java class member is annotated with the class's own nested annotation
  • KT-87290 Investigate possible bug in value class deserialization
  • KT-61141 K/N: irText tests failed with K/N irText first run
  • KT-85764 Native: Prohibit compiling sources in 'kotlin' package by default
  • KT-86469 Check 'when's over 'ConeKotlinType' which could miss some branches in DFA
  • KT-87253 Missed ConeCapturedType check in processing of equals contracts
  • KT-84522 Refactor FirResolvedQualifier
  • KT-84299 resolvedToCompanionObject is not set in some situations
  • KT-87327 JVM IR: NullPointerException in JvmInlineClassLowering when using == between value of generic value class and another value class
  • KT-86959 Native: OptimizeCasts gets confused by "complex" terms leaking between different loop iterations
  • [KT-86949](https://yo...
Read more