Repository navigation
Releases
Releases Β· JetBrains/kotlin
Kotlin 2.5.0-RC
Changelog
Analysis API. Standalone
KT-89902Analysis API Standalone: JavaPsiFacade doesn't find Kotlin classes from binary libraries
Backend. Wasm
KT-91167K/Wasm: suspend lambda containing a suspend call triggers unrelated file-property initialization
Compiler
KT-90315Value classes resolved first as a supertype are treated as identity classesKT-84904Alpha release of Multi-Field Value ClassesKT-90707Parser: "Expecting ';' after the last enum entry" when an enum entry named error has arguments or a bodyKT-91112Type inference: reified Enum inferred as Nothing for a function-reference extension call since Kotlin 2.5KT-90589K/N: Debug static framework with a Kotlin subclass of NSObject does not link without -dead_strip: undefined "_kfun:platform.darwin.NSObject#objc:*-impl"KT-90321K2 IDE: "Multiple plugins generated nested class with same name Companion" floods the IDE log for a class with@Slf4j(Lombok) and@SerializableKT-89985InnerClasses 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-91317Reflection: IAE "fromIndex(1) > toIndex(0)" on KClass.members of stdlib inline classesKT-90525Reflection: "MutableCollectionKClassImpl cannot be cast to ClassBasedDeclarationContainer" from KType.classifier of annotated Java collection type
JavaScript
KT-91371K/JS: extending a JsExport-ed interface breaks property accessKT-90564K/JS, K/Wasm: top-level suspend function doesn't trigger file properties initializationKT-90587K/JS: Exported abstract suspend functions are not callable from JSKT-90912K/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.2KT-90675Native, Klibs: Value class '==' boxes because the deserializer doesn't recognize the old GENERATED_SINGLE_FIELD_VALUE_CLASS_MEMBER origin
Libraries
KT-91066Kotlin/Wasm: KClass.hashCode() allocates and hashes the qualified class name string on every call
Tools. Compiler Plugins
KT-90516Lombok: Unexpected returnTypeRef during supertype generation for builder classKT-90666Lombok: disable@Builderannotation in Kotlin code due to many issuesKT-90086Lombok: ClassCastException during supertype generation for EqualsAndHashCode with inheritance
Tools. Compiler plugins. Compose
KT-84055Reference to lambda in lambda in function 'TextField' can not be evaluatedKT-90466Compose compiler, Kotlin/Native: IrLinkageError "No function found for symbol" for lambda SAM-converted to@Composablefun interface from another module
Tools. Compiler plugins. Serialization
KT-91224Kx Serialization: Regression in support of Java enums with Serializable annotation
Tools. Gradle
KT-91331Deprecated Kotlin sourceSets in Android extension: block form doesn't report the error in Groovy DSL or in suppressed Kotlin DSLKT-91330Groovy DSL: kotlin { sourceSets { main {} } } in Android project fails with misleading "Could not find method main()"KT-85935KGP / Android: sourceSets deprecation not shown in DSL block form inside KotlinAndroidProjectExtensionKT-90672Gradle: "configureEach(Action) on task set cannot be executed in the current context" when KotlinCompile is created lazily with AGP built-in KotlinKT-90997Preserve behaviour of deprecated kotlin.internal.incremental.enableUnsafeOptimizationsForMultiplatform in 2.5.0
Tools. Gradle. JS
KT-90489Rich TypeScript declarations ignore Long-as-BigInt enabled by target es2020KT-90491GenerateTypeScriptDefinitions task generates UMD declarations for ES module when target is es2015 or higher and module kind is not setKT-90533-Xes-long-as-bigint=true is ignored by Analysis API-based TypeScript declaration generationKT-90519KGP and BTA do not preserve -XXLanguage settings for Analysis API-based TypeScript declaration generationKT-90366-Xdts-use-unknown-instead-any is ignored by the new GenerateTypeScriptDefinitions taskKT-89797KJS/KGP: Playwright tests fail to update after kotlin code changesKT-90286NodeJsExec ignores a custom executable
Tools. Gradle. Multiplatform
KT-90544Gradle, Multiplatform: Publication iteration misses JS, Wasm and Native targets since 2.5.0-Beta2 (after Kotlin Archive publishing changes)
Tools. Gradle. Swift Export
KT-90738swiftPackageIntegration: Release build fails to link exported package (undefined symbol KotlinRuntimeSupport_linkAnchor)
Tools. Incremental Compile
KT-91153Incremental compilation failed: The following FqNames can't be derived from DirtyData.dirtyLookupSymbols
Kotlin 2.5.0-Beta2
Changelog
Analysis API
KT-60484Analysis API: add support for KtType pointers similar to KtSymbolPointerKT-67786Analysis API: Implement improvedKtTypehierarchy and designKT-68462Analysis API: Integrateproject-structuremodule intoanalysis-apiandanalysis-api-platform-interfaceKT-68341Analysis API: Expanded function types from libraries don't have an abbreviated typeKT-68857Analysis API: Refactor annotationsKT-65215Analysis API: Distinguish APIs for Analysis API users and platformsKT-68884Analysis API: Rename/deprecate/remove declarations as part of StabilizationKT-69055Analysis API: StabilizeKaScopesKT-61775Analysis API: KtKClassAnnotationValue lacks complete type informationKT-60884Analysis API: Improve standalone mode project model creation
Analysis API. FIR
Performance Improvements
KT-60240K2: optimize FirElementBuilder#getOrBuildFirForNonKtFileElement forKtTypeReferencecaseKT-76375ContextCollector: terminate search if no elements were found with a designationKT-86758Don't require body resolution to obtain an explicit backing fieldKT-75496Doesn't resolve the entire designation path to the body phase for diagnostics
Fixes
KT-74654K2 Analysis API: InvalidFirElementTypeException with annotated non-local destructuring declarationKT-81100Support jvmTargetProvider in low-level analysis APIKT-75470ContextCollector: potentially incorrect scope for super type callKT-79057Fix all// IGNORE_PHASE_VERIFICATION: invalid code inside annotationsdirectivesKT-77041Expected is FirResolvedDeclarationStatus, but was FirDeclarationStatusImplKT-60609K2 IDE: Navigation to super class of annotation opensAnyinstead of written super typeKT-80721K2 AA. "FirDeclaration was not found for class KtTypeParameter, fir is null" with generic type parameter in object expressionKT-64899K2: PsiRawFirBuilder forces AST loading for scriptsKT-85627AA: LLFlightRecorder initialization fails on runtimes without jdk.jfrKT-86185Analysis API: MakeFirDesignationinternal by removing the leak throughUsualClassTypeQualifierBuilderKT-85410LLFirTypeTargetResolver: add more type guardsKT-88111K2: Analysis API: make FileStructure element computation fully lazy
Analysis API. Infrastructure
KT-89711test-data-manager is incompatible with Isolated ProjectsKT-87672Eliminate class duplication in the Analysis API JARsKT-84914Do not publish analysis-api-test-frameworkKT-89119Enforce KaInternals prefix name schema
Analysis API. Light Classes
KT-87399LightClassUtil.getLightClassPropertyMethods returns wrong setter when JvmName annotation is usedKT-70427SLC: non-abstract interface method generated as default with-jvm-default=disableoptionKT-88498Support multi-field value classes in light classesKT-89316SLC:DefaultImplslight class exposes@JvmStaticmembers of the interface companion objectKT-89322UAST: NPE accessing containingFile of UParameter for mapped collection methodKT-89073SLC:@JvmOverloads+@JvmExposeBoxed("bar") methods are exposed with the original nameKT-84373Implement PsiMethod#isDefaultConstructorKT-89204SLC: False positive "unresolved reference" in Java for interface companion block members
Analysis API. PSI
KT-80780KtPsiUtil#getEnclosingElementForLocalDeclaration should return KtClassBody for enum entries membersKT-89846PSI: Kotlin overrides of standardPsiElementmutation methods throw IllegalStateException without KtPsiMutationServiceKT-85052Move mutation methods out of the Kotlin PSIKT-88443Advance DeprecationLevel for PSI declarations deprecated in 2026.2 and earlier
Analysis API. Providers and Caches
KT-71359Perform validity checks before session acquisitionKT-89816Analysis API tests: low-memory cache cleanup invalidates sessions in the middle of a testKT-86402False positive MISSING_DEPENDENCY_SUPERCLASS when using Scala case class in Kotlin
Analysis API. Standalone
KT-84851Analysis API Standalone: 75% of CPU time spent in StringsKt.split via trie-based library scopesKT-88362PsiMethod.findSuperMethods()always returns an empty arrayKT-61404Analysis API: implement proper library publishing structureKT-85112AA does not see packages from unpacked klibs
Analysis API. Stubs and Decompilation
KT-80758Consider to drop KotlinClassOrObjectStub#isLocalKT-81203Get rid of deprecated usage at ClsClassFinder.isKotlinInternalCompiledFileKT-88772Refine stubs surfaceKT-89376Rethink decompiler dependencies
Analysis API. Surface
New Features
KT-85384Provide use-site-aware API for Light ClassesKT-88496Support multi-field inline classes in Analysis API SurfaceKT-78862Provide KaSymbol -> PsiElement API
Fixes
KT-88129AdvanceDeprecationLevelfor declarations deprecated in 2026.2 and earlierKT-73570Merge implementation ofKaExpressionTypeProvider.returnTypewithKaCallableSymbol.returnTypeKT-86591Rethink how the context parameters feature could be integrated into the Analysis API SurfaceKT-82176KaFirUsualClassType has incorrect type argument for generic local class in generic functionKT-66192Analysis API: Improve render customizabilityKT-83199Clarify API around extension pointsKT-77280RenameKaPropertyAccessorSymbol#isCustomtoisNotDefaultKT-60483Analysis API: add isTailrec property to KtFunctionSymbolKT-68882Analysis API: RefactorKaSymbolsKT-55124Design common ancestor for KtValueParameter and KtReceiverParameterSymbolKT-53669Analysis API: redesign KtSymbolOrigin to distinguish kotlin/java source/library declarations
Backend. Wasm
Performance Improvements
KT-88469K/Wasm: consider inlining suspendCoroutineUninterceptedOrReturn and getCoroutineContext intrinsics on 2nd Stage
Fixes
KT-89394[Wasm] stop creating of CoroutineImplStackSwitching at the call cite of suspendCoroutineUninterceptedOrReturnKT-90119K/Wasm: ArenaLikeAllocator.allocationsToFree is only cleared on freeAllComponentModelReallocAllocatedMemory()KT-89267K/Wasm: calling a (T) -> R lambda with an argument that isn...
Kotlin 2.4.21
Changelog
Backend. Wasm
KT-89267K/Wasm: calling a (T) -> R lambda with an argument that isn't a T traps instead of throwing ClassCastException
JVM. Reflection
KT-89280NoSuchElementException in argumentsMakeSenseOnlyForMutableContainer for Java non-static inner class of generic outer classKT-80710Reflection: change KCallable representation to avoid dependency on K1
JavaScript
KT-89449Kotlin/JS: Member names no longer minified in productionKT-89363KJS. Regular class with companion can't extend external class
Tools. Compiler plugins. Serialization
KT-89275Kotlin/Wasm: Invalid Wasm is emitted for a@Serializablegeneric class with a class upper bound
Tools. Gradle. Native
KT-89285SwiftPM import results in flooded logKT-86251K/N: Flaky linkDebugTestLinuxX64 failure with "truncated or malformed archive" on libstdlib-cache.a
Tools. Scripts
KT-89247Kotlin Script: NoClassDefFoundError on 2nd execution with transitive dependency from imported scriptKT-89220JSR-223: generic Java bindings break all subsequenteval()callsKT-88458Audit closeable resource usageKT-88453VirtualFileScriptSource.textleaks an unclosed file stream β script source file handle held until GC, blocks file deletion on Windows
Kotlin 2.4.21-RC
Changelog
Backend. Wasm
KT-89267K/Wasm: calling a (T) -> R lambda with an argument that isn't a T traps instead of throwing ClassCastException
JVM. Reflection
KT-89280NoSuchElementException in argumentsMakeSenseOnlyForMutableContainer for Java non-static inner class of generic outer classKT-80710Reflection: change KCallable representation to avoid dependency on K1
JavaScript
KT-89449Kotlin/JS: Member names no longer minified in productionKT-89363KJS. Regular class with companion can't extend external class
Tools. Compiler plugins. Serialization
KT-89275Kotlin/Wasm: Invalid Wasm is emitted for a@Serializablegeneric class with a class upper bound
Tools. Gradle. Native
KT-89285SwiftPM import results in flooded logKT-86251K/N: Flaky linkDebugTestLinuxX64 failure with "truncated or malformed archive" on libstdlib-cache.a
Tools. Scripts
KT-89247Kotlin Script: NoClassDefFoundError on 2nd execution with transitive dependency from imported scriptKT-89220JSR-223: generic Java bindings break all subsequenteval()callsKT-88458Audit closeable resource usageKT-88453VirtualFileScriptSource.textleaks an unclosed file stream β script source file handle held until GC, blocks file deletion on Windows
Kotlin 2.5.0-Beta1
Changelog
Analysis API
KT-88945Analysis API: annotation resolution drops a class id when a source annotation shadows a library oneKT-87460Flaky (Embeddable)SwiftExport testsKT-68896Support VirtualFile binary dependency inputs to Analysis API modulesKT-65417K2 IDE: KTOR false positive expect-actual matching error on enum class because of implicit clone() in non-JVM source sets
Analysis API. FIR
KT-88962False negative [AMBIGUOUS_ANNOTATION_ARGUMENT] diagnostic in some corner casesKT-87651[Analysis API] Unexpected FIR status exception on SAM interfacesKT-87572Symbols from companion blocks have dispatchReceiver in stub-based versionKT-69727K2 IDE. Wrong error in the editor on callingclonefunction of actual enum instance in non-jvm platformKT-69726FP errors on declaringfun clone()in actual enum in not-jvm source-setKT-72660ISE: Recursive update at org.jetbrains.kotlin.analysis.low.level.api.fir.caches.FirCaffeineCache.getValueKT-62892K2 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-84914Do not publish analysis-api-test-frameworkKT-87672Eliminate class duplication in the Analysis API JARsKT-87998Move out Standalone components from the 'kotlin-analysis-api-surface' and 'kotlin-analysis-api-implementation'KT-88404Merge the decompiler text and stubs into one test caseKT-88371Optimize symbol light classes testsKT-87607Test Federation: Review domain Analysis API Smoke & Contract testsKT-86787Stop publish analysis-api-fe10-for-ideKT-87593Migrate Analysis API tests on JDK 11KT-87529Test Data Manager: introduce a separate task for checks
Analysis API. Light Classes
KT-57537SLC: propagate default parameter value from (@JvmOverloads)expectdeclarations toactualdeclarationsKT-88879Value classes / JvmExposeBoxed: false-negative resolve for overridden exposed functionsKT-88861Value classes / JvmExposeBoxed: internal method from value class is shown as valid call on java side but cannot be compiledKT-88805SLC:@JvmInlinevalue classis treated asPsiClass#isValueClass`KT-65385K2 IDE: Light classes incorrectly exposeCompanionclass and the corresponding static field if the companion object is generated by a compiler pluginKT-67711K2: Pointer already disposed from SLC/AI
Analysis API. PSI
KT-89032Missing PSI utilities for companion blocksKT-88925Restrict theKtElementhierarchy with@SubclassOptInRequiredKT-88788Refine the new resolution API (PSI-part)KT-74070Cover the Kotlin PSI with KDocsKT-87819UseScope of private interfaces is incorrectKT-85052Move mutation methods out of the Kotlin PSI
Analysis API. Providers and Caches
KT-77194Analysis API: Move union and intersection scope merge strategies to the Analysis APIKT-87231Analysis API: Fallback dependencies must have a binary-only base content scopeKT-86402False positive MISSING_DEPENDENCY_SUPERCLASS when using Scala case class in KotlinKT-87680Analysis API: LL FIR sessions contain redundantBuiltinTypesinstances
Analysis API. Standalone
KT-89242Analysis API Standalone: KLIB/JAR file handles remain open after session disposalKT-61404Analysis API: implement proper library publishing structureKT-88362PsiMethod.findSuperMethods()always returns an empty arrayKT-84851Analysis API Standalone: 75% of CPU time spent in StringsKt.split via trie-based library scopes
Analysis API. Stubs and Decompilation
New Features
KT-10793Improve decompiled text for annotationsKT-87857Support strict equals in stubsKT-85756Support annotation arguments in the decompiler
Performance Improvements
KT-88067Implement stub-based initializer for constant propertiesKT-88060Make KtParenthesizedExpression stub-basedKT-79396Make KtBinaryExpression stub-basedKT-79397Make KtUnaryExpression stub-basedKT-71787PsiRawFirBuilder.Visitor#visitStringTemplateExpressionforces AST loading
Fixes
KT-88984compiler-common and analysis-api-impl-base cyclic depend on each otherKT-78356Migrate stubs from stub element type to stub factoriesKT-88500Support multi-field value classes in Analysis API stubs / decompilerKT-52806Store type in callable stubs when callable have implicit type and trivial initializerKT-77096Implement more stub-based annotation arguments
Analysis API. Surface
New Features
KT-84255Expose possible smart casts from ContextCollector in KaScopeContextKT-88985Refine the new resolution API around error handlingKT-88521Analysis API surface: support "Strict equals" (equality bound types) language featureKT-86610Rework KaDiagnosticProvider to be more flexibleKT-68881Analysis API: IntroduceKaType.classIdKT-87311Propagate psi from generated declarations to KaSymbols
Fixes
KT-84186Unresolved annotationClassIdreturns ""KT-89175Add contracts to the new resolution utilitiesKT-88767Refine the new resolution APIKT-87557'Analysis API Public API Checks' run configuration should include the artifacts checksKT-89030[Analysis API] GeneralizeKaFirNestedInLocalClassFromCompilerPluginSymbolPointerKT-73195AA FIR: missing annotations on function literalKT-82397KaFunctionTypeshould offer context parameter types, not context receiversKT-88645Stabilize KtResolvable(Call)KT-88489resolveToCallCandidates throws ClassCastException for callable reference expressions resolveToCallCandidatesKT-85528Move diagnostic classes out of analysis-api-firKT-63221K2: Analysis API: reworkgetDiagnosticsForElementAPIKT-87210KaSubstitutor.Empty shouldn't be a classKT-75549DeprecateKaTypeProvider#collectImplicitReceiverTypesKT-54508Re-design 'javaGetterName' and 'javaSetterName'KT-86591Rethink how the context parameters feature could be integrated into the Analysis API Surface- [
KT-87564](https://youtrack.jetbrains.c...
Kotlin 2.4.20
Changelog
Analysis API
KT-86546Check suspicious when over ConeKotlinType in ConeTypeCompatibilityCheckerKT-85418Implement an API for accessing deserialized file annotations in Analysis APIKT-74448K2. False positive MISSING_DEPENDENCY_SUPERCLASS in LinkedListTest.kt, kotlinx.coroutinesKT-85856containingSymbol of constructor property differs for local and non-local classesKT-65417K2 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-76457K2 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-70552No expects for actualKT-69727K2 IDE. Wrong error in the editor on callingclonefunction of actual enum instance in non-jvm platformKT-69726FP errors on declaringfun clone()in actual enum in not-jvm source-setKT-86014Types are broken after remove parameter through change signatureKT-86363KotlinIllegalArgumentExceptionWithAttachments: No dangling modifier found on companion blocksKT-86147Dropkotlin.parallel.resolve.under.global.lockregistry keyKT-85543Avoid lazy resolve for the contracts phase if no constracts might be resolved
Analysis API. Infrastructure
KT-84914Do not publish analysis-api-test-frameworkKT-86986kotlin-compiler-common-for-idebundles unrelated Analysis API modulesKT-86186Analysis API: Codebase tests run twice in some analysis modules β pick a single JUnit runner and migrateKT-85360Drop kotlin-compiler-testdata-for-ide artifactKT-85585Simplify the dependencies graph for the Analysis API modulesKT-85381Remove tests for the FE10 implementation
Analysis API. Light Classes
New Features
KT-84645Support resolving to companion block members & extensions from Java (light classes)KT-80775Support PsiClass#getRecordComponents in light classes
Fixes
KT-57537SLC: propagate default parameter value from (@JvmOverloads)expectdeclarations toactualdeclarationsKT-85040[Analysis API] Improve Java / Kotlin interop in KMP projectsKT-87301SymbolLightAccessorMethod#isValid returns false for delegated propertiesKT-87171SLC: non-mapped Kotlin collection supertype is dropped from supertype listKT-87250JvmExposeBoxed: light classes shouldn't be autogenerated for private declarationsKT-70428AA: good code is red when a Java class extends a Kotlin class implementing MutableList by delegationKT-63568Symbol Light Classes: KtAnnotationApplicationWithArgumentsInfo.normalizedArguments() may work incorrectly when psi is not setKT-36740MPP: False-positive incompatible types in .java when using expect-class returned by non-expect member from common when actual is actual typealiasKT-67749Analysis API: Symbol Light classes should be available only to pure JVM sourcesKT-68169K2 IDE. KMP. False positive type mismatch in java file of jvm source-set when using common declaration which expects StringKT-37783KMP Java Interop: JVM-only methods on actual superclass not resolved in Java for common subclassKT-40059Provide type correction for expect/actual types used from Java-codeKT-71429MPP: False positive "Function1 is not a functional interface" when calling code from Common in JavaKT-70426SLC: kotlin.Collection#size is not exposed by defaultKT-60480Symbol Light Classes: Classes implementing kotlin.collections.* interfaces don't implement all methods from the corresponding java.util.* interfacesKT-36991IDE: "both methods have same erasure" for Java classes directly or indirectly extending Kotlin collectionsKT-22594KotlinCollection.getSize is not highlighted as an error in Java
Analysis API. PSI
KT-84925Move KtReference to the Kotlin IntelliJ pluginKT-85052Move mutation methods out of the Kotlin PSIKT-85427Use factory-like pattern instead of reflection in KtNodeTypeKT-84789Ensure allKtClassBody.parentusages are correctKT-85154PSI: "AE: parent is ERROR_ELEMENT" with top-level destructuring declaration
Analysis API. Providers and Caches
KT-82220Analysis API: Support platform-specific session components and checkers in metadata sessionsKT-76526Incorrect built-in module is provided for non-JVM sources in Standalone
Analysis API. Standalone
KT-83191Analysis API: JvmDependenciesIndexImpl performs very poorly for large classpathsKT-61404Analysis API: implement proper library publishing structureKT-85112AA does not see packages from unpacked klibsKT-86417Support parameters in 'getExpectsForActual()'KT-84916Metadata stub deserializers aren't properly set up for Analysis API Standalone
Analysis API. Stubs and Decompilation
KT-86250KotlinIllegalArgumentExceptionWithAttachments: No fir element was found for KtDestructuringDeclaration on destructuring declaration typingKT-86520KotlinDeclarationInCompiledFileSearcher doesn't support visibility-mangled declarationsKT-64901Inconsistency between AST and Stub tree in the case of non-local destructuring declarationsKT-84444Support stubs for companion blocks & extensions
Analysis API. Surface
New Features
KT-73214AddKaScope#declarationswith name filterKT-69085Provide API to retrieve label/name from KtFunctionLikeSymbolKT-70771KaLocalVariableSymbol: supportisDelegatedPropertyKT-85037Add API for KaFunctionType's returnType modificationKT-80460AA: IntroduceKtExpression.isStableForSmartCastingAPIKT-66566AA: api to create functional typesKT-65912Analysis API: Implement type building API for all KtType
Performance Improvements
KT-70021Analysis API: optimize KaFirExpressionTypeProvider.expressionType for simple cases
Fixes
KT-66039K2: Analysis API: redesign resolution APIKT-86394Resolve from KDoc reference is inconsistent with source codeKT-87337Integrate KaContextParameterOwnerSymbol into KaCallableSymbolKT-78234Analysis API: Context parameters for accessorsKT-86786Investigate suspicious when over ConeKotlinType in ConeKotlinType.getDirectSupertypesKT-72902Shouldn'tKaSymbolProvider#findClassreturnKaNamedClassSymbol?KT-87237No expected type insidearrayOfin a...
Kotlin 2.4.20-RC3
Changelog
Compiler
KT-88953CCE caused by suspend conversion of nullable argument to nullable expected type
Kotlin 2.4.20-RC2
Changelog
Compiler
KT-88316K/N: StackOverflowError in CastsOptimization when two nullable local variables are assigned to each other across nested loops
Compose compiler
b/549552317Fixed a bug that, in certain cases, prevented execution of non-local returnstatementsinside lambdas called fromwhenexpressions.
JavaScript
KT-88571K/JS: "llegalStateException: Internal error: cannot find external signature" caused by@Serializableenum in 2.4.20-RC
Tools. CLI
KT-88475IncrementalCompilationComponents instances are not being called anymore
Tools. Gradle. Wasm
KT-88566K/Wasm: Webpack configuration generated after user defined chunks from the webpack.config.d directory
Kotlin 2.4.20-RC
Changelog
Backend. J2KLIB
KT-88165Add Support for -XheaderModeType=compilation to improve header compilation performanceKT-86239[JKLIB] Investigate which type system context is needed in JklibIrLinkerKT-88306[JKLIB] Unbound symbols for kotlin.coroutines.SuspendFunctionNKT-88120[JKLIB] Add -jvm-target to K2JKlibCompilerArgumentsKT-88176[JKLIB] DeserializationStrategy.WITH_INLINE_BODIES when deserializaing dependenciesKT-88163Allow to disable firAggressivePrunner for Jklib
Compiler
KT-87499ClassCastException "Float cannot be cast to Unit" when a suspend function's result is discarded in a when-branchKT-87983CCE on member extension property delegated to bound property referenceKT-85403kotlin.NoWhenBranchMatchedException on Kotlin Native with sealed interfaceKT-87922K1FakeDescriptorsForReferencesKt classes duplicated between kotlin-scripting-compiler-embeddable and kotlin-build-tools-implKT-86657Native: turn on incremental compilation by default
Compose compiler
b/543684938Fix composable singleton in function with type parametersb/537617330Fixed a bug that caused miscompilation of cross-module calls
Β Β Β Β Β Β to getters and setters, causing spurious runtime errors.
JVM. Reflection
KT-87369Reflection: KClass.members fails on Java class with self-referential raw type bounds
Tools. Build Tools API
KT-88348MessageCollector in IncrementalCompilerRunner drops diagnostics IDsKT-87743MakeKotlinCoreEnvironment.disposeApplicationEnvironment()unnecessary for K2 BTA compilation
Tools. CLI
KT-87868In-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-88179Power-assert: IrGenerationExtensionException (StringIndexOutOfBoundsException) when assert() wraps a context-parameter function call
Tools. Compiler plugins. Compose
KT-88028Compose compiler: IndexOutOfBoundsException in ComposableTargetAnnotationsTransformer when overriding a@Composablefunction with default parameter in another module
Tools. Gradle
KT-87994Run Gradle integration tests against Gradle 9.7KT-87993Compile against Gradle API 9.7KT-87256KotlincOutputParser fails to parse compilation errors under Gradle when task path prefixes are enabled (Kotlin 2.4.20-Beta1)KT-88084Each build leaves a strong reference to an instance of BuildMetricsServiceKT-87911Report an actionable diagnostic when .kar files reach compilation classpaths in Kotlin 2.4.20KT-86040Run tests against the Gradle 9.6.0 release
Tools. Gradle. Multiplatform
KT-87790Kotlin 2.4.0 increases Gradle sync timesKT-88104dumpXcodebuildArgs task fails if the root build directory is removedKT-88154Swift PM lock file is ignored on switching version fromexacttofrom
Tools. Gradle. Wasm
KT-88115"Your lockfile needs to be updated": Outdated bundled yarn.lock breaks kotlinWasmToolingSetup with --frozen-lockfile
Tools. Scripts
KT-87958K2 scripting: FirPropertyImpl transformation crash when using class from@file:Import-ed script in 2.4.0+
Kotlin 2.4.20-Beta2
Changelog
Analysis API
KT-86546Check suspicious when over ConeKotlinType in ConeTypeCompatibilityCheckerKT-65417K2 IDE: KTOR false positive expect-actual matching error on enum class because of implicit clone() in non-JVM source sets
Analysis API. FIR
KT-69727K2 IDE. Wrong error in the editor on callingclonefunction of actual enum instance in non-jvm platformKT-69726FP errors on declaringfun clone()in actual enum in not-jvm source-set
Analysis API. Infrastructure
KT-84914Do not publish analysis-api-test-frameworkKT-86986kotlin-compiler-common-for-idebundles unrelated Analysis API modules
Analysis API. Light Classes
KT-87301SymbolLightAccessorMethod#isValid returns false for delegated propertiesKT-87171SLC: non-mapped Kotlin collection supertype is dropped from supertype listKT-87250JvmExposeBoxed: light classes shouldn't be autogenerated for private declarations
Analysis API. PSI
KT-84925Move KtReference to the Kotlin IntelliJ plugin
Analysis API. Standalone
KT-61404Analysis API: implement proper library publishing structure
Analysis API. Stubs and Decompilation
KT-86250KotlinIllegalArgumentExceptionWithAttachments: No fir element was found for KtDestructuringDeclaration on destructuring declaration typingKT-64901Inconsistency between AST and Stub tree in the case of non-local destructuring declarations
Analysis API. Surface
Performance Improvements
KT-70021Analysis API: optimize KaFirExpressionTypeProvider.expressionType for simple cases
Fixes
KT-87337Integrate KaContextParameterOwnerSymbol into KaCallableSymbolKT-78234Analysis API: Context parameters for accessorsKT-86786Investigate suspicious when over ConeKotlinType in ConeKotlinType.getDirectSupertypesKT-72902Shouldn'tKaSymbolProvider#findClassreturnKaNamedClassSymbol?KT-87237No expected type insidearrayOfin annotation entriesKT-87143findKDocreturns parent property KDoc for accessors of an overriding propertyKT-83224Support "Compile-time functions" in the Analysis APIKT-87174Expected class KaFirSymbol instead of class KaFirPackageSymbol exceptionKT-87199[Analysis API] RemoveKaEnumEntryInitializerSymbolKT-85206Provide information about potentially removable context-sensitive resolution qualifiers via Analysis APIKT-86872KtOperationReferenceExpressionshould beKtResolvableCallKT-85800Analysis API: The internal utilityPrettyPrinteris used in the public API surfaceKT-73796Consider "KaAnnotation#useSiteTarget" removalKT-84184[Analysis API] Provide a unification substitutor API
Backend. Wasm
KT-86242K/Wasm: deprecate and prohibit usingwasmExportsKT-87639[Wasm] Multimodule wasm fails on Pointer usagesKT-86245K/Wasm: provide an API to get a reference to wasm memoryKT-76207K/Wasm: prototype generating suspend functions with stack-switching proposalKT-73452K/Wasm: turning on range checks by defaultKT-83159K/Wasm: generate one common base class fun interfaces (including Function*)KT-83356K/Wasm: Difference in behavior on nested class initialization (for enums?)KT-84267K/Wasm: init order of companion objects is different from JVMKT-86192K/Wasm: Raise a warning on usage of top-level require in JsFunKT-86822K/Wasm: don't cast the result of calling callable references with Unit return type
Compiler
New Features
KT-85925Native: rework virtual trampolines machineryKT-80373Add initial support for release compiler cachesKT-86018Short-form of name-based destructuring for multi-field value classesKT-86406Swift Export: support supercalls for cross-language inheritanceKT-77616Native: consider adding an annotation that enforces thread state switching for a@SymbolNameexternal fun`KT-86410[KMP] Implement acceptance of JVM IC metadata from previous compilation
Performance Improvements
KT-85621Native: fix optimization in CastsOptimization
Fixes
KT-86525JvmExposeBoxed: Inconsistent number of parameters during reflectionKT-87606Compiler crash on red code with redeclaration of type parameter which is used as expressionKT-87335Context parameters: wrong LINENUMBER emitted for context argument loads in JVM bytecodeKT-87245Report UnsupportedFeature on ExplicitContextArgumentKT-87577Compiler crash on red code with ambiguous type parameter used as expressionKT-72706Confusing "INVISIBLE_REFERENCE" when calling private constructorKT-86957Warning on the underscore variable is not reported for java.lang.Void callKT-87261K/N debug: 'is' check miscompilation β local variable reports wrong type when two smart-cast extractions precede an inline loopKT-87507False-positiveABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTEDon fake-override with value parameter of type missing in dependenciesKT-87439Postpone UnitConversionsOnArbitraryExpressions indefinetelyKT-87434JAVA_CLASS_ON_COMPANION not reported when companion accessed through typealiasKT-64622[K/N]arutility fails with symbol@in module/klib name on Linux with static cacheKT-84037Native: reworkarinvocations in the compilerKT-87339JVM: Support recursive type provided as an argument of typeOfKT-86551Check suspicious when over ConeKotlinType in FirExposedVisibilityDeclarationChecker#findVisibilityExposureKT-87395StackOverflowError in return value checker when a Java class member is annotated with the class's own nested annotationKT-87290Investigate possible bug in value class deserializationKT-61141K/N: irText tests failed with K/N irText first runKT-85764Native: Prohibit compiling sources in 'kotlin' package by defaultKT-86469Check 'when's over 'ConeKotlinType' which could miss some branches in DFAKT-87253MissedConeCapturedTypecheck in processing ofequalscontractsKT-84522Refactor FirResolvedQualifierKT-84299resolvedToCompanionObjectis not set in some situationsKT-87327JVM IR: NullPointerException in JvmInlineClassLowering when using == between value of generic value class and another value classKT-86959Native: OptimizeCasts gets confused by "complex" terms leaking between different loop iterations- [
KT-86949](https://yo...