Update kotlin.version to v2.5.0 #112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/kotlin.version"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
2.4.21→2.5.02.4.21→2.5.0Release Notes
JetBrains/kotlin (org.jetbrains.kotlin:kotlin-maven-noarg)
v2.5.0Compare Source
Updated vulnerable third-party dependencies in:
Analysis API
Fixes
KT-87460Flaky (Embeddable)SwiftExport testsKT-60884Analysis API: Improve standalone mode project model creationKT-61775Analysis API: KtKClassAnnotationValue lacks complete type informationKT-69055Analysis API: StabilizeKaScopesKT-68884Analysis API: Rename/deprecate/remove declarations as part of StabilizationKT-65215Analysis API: Distinguish APIs for Analysis API users and platformsKT-68857Analysis API: Refactor annotationsKT-68341Analysis API: Expanded function types from libraries don't have an abbreviated typeKT-68462Analysis API: Integrateproject-structuremodule intoanalysis-apiandanalysis-api-platform-interfaceKT-67786Analysis API: Implement improvedKtTypehierarchy and designKT-60484Analysis API: add support for KtType pointers similar to KtSymbolPointerKT-65417K2 IDE: KTOR false positive expect-actual matching error on enum class because of implicit clone() in non-JVM source setsKT-68896Support VirtualFile binary dependency inputs to Analysis API modulesKT-88945Analysis API: annotation resolution drops a class id when a source annotation shadows a library oneAnalysis 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 diagnosticsFixes
KT-85627AA: LLFlightRecorder initialization fails on runtimes without jdk.jfrKT-88111K2: Analysis API: make FileStructure element computation fully lazyKT-85410LLFirTypeTargetResolver: add more type guardsKT-86185Analysis API: MakeFirDesignationinternal by removing the leak throughUsualClassTypeQualifierBuilderKT-64899K2: PsiRawFirBuilder forces AST loading for scriptsKT-80721K2 AA. "FirDeclaration was not found for class KtTypeParameter, fir is null" with generic type parameter in object expressionKT-60609K2 IDE: Navigation to super class of annotation opensAnyinstead of written super typeKT-77041Expected is FirResolvedDeclarationStatus, but was FirDeclarationStatusImplKT-79057Fix all// IGNORE_PHASE_VERIFICATION: invalid code inside annotationsdirectivesKT-75470ContextCollector: potentially incorrect scope for super type callKT-81100Support jvmTargetProvider in low-level analysis APIKT-74654K2 Analysis API: InvalidFirElementTypeException with annotated non-local destructuring declarationKT-62892K2 IDE. Java outer class from other module is not resolved when nested class is accessed with fq name in a type positionKT-72660ISE: Recursive update at org.jetbrains.kotlin.analysis.low.level.api.fir.caches.FirCaffeineCache.getValueKT-69726FP errors on declaringfun clone()in actual enum in not-jvm source-setKT-69727K2 IDE. Wrong error in the editor on callingclonefunction of actual enum instance in non-jvm platformKT-87572Symbols from companion blocks have dispatchReceiver in stub-based versionKT-87651[Analysis API] Unexpected FIR status exception on SAM interfacesKT-88962False negative [AMBIGUOUS_ANNOTATION_ARGUMENT] diagnostic in some corner casesAnalysis API. Infrastructure
Fixes
KT-87998Move out Standalone components from the 'kotlin-analysis-api-surface' and 'kotlin-analysis-api-implementation'KT-87672Eliminate class duplication in the Analysis API JARsKT-88371Optimize symbol light classes testsKT-87607Test Federation: Review domain Analysis API Smoke & Contract testsKT-89119Enforce KaInternals prefix name schemaKT-89711test-data-manager is incompatible with Isolated ProjectsKT-87529Test Data Manager: introduce a separate task for checksKT-87593Migrate Analysis API tests on JDK 11KT-86787Stop publish analysis-api-fe10-for-ideKT-88404Merge the decompiler text and stubs into one test caseKT-84914Do not publish analysis-api-test-frameworkAnalysis API. Light Classes
Fixes
KT-89204SLC: False positive "unresolved reference" in Java for interface companion block membersKT-84373Implement PsiMethod#isDefaultConstructorKT-89073SLC:@JvmOverloads+@JvmExposeBoxed("bar") methods are exposed with the original nameKT-89322UAST: NPE accessing containingFile of UParameter for mapped collection methodKT-89316SLC:DefaultImplslight class exposes@JvmStaticmembers of the interface companion objectKT-88498Support multi-field value classes in light classesKT-70427SLC: non-abstract interface method generated as default with-jvm-default=disableoptionKT-87399LightClassUtil.getLightClassPropertyMethods returns wrong setter when JvmName annotation is usedKT-67711K2: Pointer already disposed from SLC/AIKT-65385K2 IDE: Light classes incorrectly exposeCompanionclass and the corresponding static field if the companion object is generated by a compiler pluginKT-88805SLC:@JvmInlinevalue classis treated asPsiClass#isValueClass`KT-88861Value classes / JvmExposeBoxed: internal method from value class is shown as valid call on java side but cannot be compiledKT-88879Value classes / JvmExposeBoxed: false-negative resolve for overridden exposed functionsKT-57537SLC: propagate default parameter value from (@JvmOverloads)expectdeclarations toactualdeclarationsAnalysis API. PSI
KT-88443Advance DeprecationLevel for PSI declarations deprecated in 2026.2 and earlierKT-74070Cover the Kotlin PSI with KDocsKT-89846PSI: Kotlin overrides of standardPsiElementmutation methods throw IllegalStateException without KtPsiMutationServiceKT-80780KtPsiUtil#getEnclosingElementForLocalDeclaration should return KtClassBody for enum entries membersKT-85052Move mutation methods out of the Kotlin PSIKT-87819UseScope of private interfaces is incorrectKT-88788Refine the new resolution API (PSI-part)KT-88925Restrict theKtElementhierarchy with@SubclassOptInRequiredKT-89032Missing PSI utilities for companion blocksAnalysis API. Providers and Caches
KT-89816Analysis API tests: low-memory cache cleanup invalidates sessions in the middle of a testKT-71359Perform validity checks before session acquisitionKT-87680Analysis API: LL FIR sessions contain redundantBuiltinTypesinstancesKT-86402False positive MISSING_DEPENDENCY_SUPERCLASS when using Scala case class in KotlinKT-87231Analysis API: Fallback dependencies must have a binary-only base content scopeKT-77194Analysis API: Move union and intersection scope merge strategies to the Analysis APIAnalysis API. Standalone
KT-61404Analysis API: implement proper library publishing structureKT-89902Analysis API Standalone: JavaPsiFacade doesn't find Kotlin classes from binary librariesKT-89242Analysis API Standalone: KLIB/JAR file handles remain open after session disposalKT-85112AA does not see packages from unpacked klibsKT-84851Analysis API Standalone: 75% of CPU time spent in StringsKt.split via trie-based library scopesKT-88362PsiMethod.findSuperMethods()always returns an empty arrayAnalysis API. Stubs and Decompilation
New Features
KT-10793Improve decompiled text for annotationsKT-85756Support annotation arguments in the decompilerKT-87857Support strict equals in stubsPerformance Improvements
KT-88067Implement stub-based initializer for constant propertiesKT-71787PsiRawFirBuilder.Visitor#visitStringTemplateExpressionforces AST loadingKT-79397Make KtUnaryExpression stub-basedKT-79396Make KtBinaryExpression stub-basedKT-88060Make KtParenthesizedExpression stub-basedFixes
KT-89376Rethink decompiler dependenciesKT-88772Refine stubs surfaceKT-81203Get rid of deprecated usage at ClsClassFinder.isKotlinInternalCompiledFileKT-80758Consider to drop KotlinClassOrObjectStub#isLocalKT-77096Implement more stub-based annotation argumentsKT-52806Store type in callable stubs when callable have implicit type and trivial initializerKT-88500Support multi-field value classes in Analysis API stubs / decompilerKT-78356Migrate stubs from stub element type to stub factoriesKT-88984compiler-common and analysis-api-impl-base cyclic depend on each otherAnalysis API. Surface
New Features
KT-84255Expose possible smart casts from ContextCollector in KaScopeContextKT-88521Analysis API surface: support "Strict equals" (equality bound types) language featureKT-88496Support multi-field inline classes in Analysis API SurfaceKT-87311Propagate psi from generated declarations to KaSymbolsKT-78862Provide KaSymbol -> PsiElement APIKT-86610Rework KaDiagnosticProvider to be more flexibleKT-88985Refine the new resolution API around error handlingKT-68881Analysis API: IntroduceKaType.classIdKT-85384Provide use-site-aware API for Light ClassesFixes
KT-88129AdvanceDeprecationLevelfor declarations deprecated in 2026.2 and earlierKT-87552Compiler-internal types leak into the public Analysis API surfaceKT-53669Analysis API: redesign KtSymbolOrigin to distinguish kotlin/java source/library declarationsKT-55124Design common ancestor for KtValueParameter and KtReceiverParameterSymbolKT-68882Analysis API: RefactorKaSymbolsKT-60483Analysis API: add isTailrec property to KtFunctionSymbolKT-77280RenameKaPropertyAccessorSymbol#isCustomtoisNotDefaultKT-83199Clarify API around extension pointsKT-66192Analysis API: Improve render customizabilityKT-82176KaFirUsualClassType has incorrect type argument for generic local class in generic functionKT-73570Merge implementation ofKaExpressionTypeProvider.returnTypewithKaCallableSymbol.returnTypeKT-81264K2 AA:KaValueParameterSymbol.hasDefaultValueis false for overriding or actual functionsKT-73946Analysis API: Add a way to navigate from "KaPropertySymbol" to "KaValueParameterSymbol" for primary constructor propertiesKT-87343AA: hasDefaultValue is incorrect for parameter of actual constructorKT-87338Drop KaTypeParameterOwnerSymbolKT-69959fakeOverrideOriginalshould support value/type/receiver parametersKT-87578Explicitly split implementations and APIs in symbolsKT-87924Consider droppingKaType.is*TypeutilitiesKT-87564Analysis API: nested type alias qualifier resolves to expanded type ownerKT-86591Rethink how the context parameters feature could be integrated into the Analysis API SurfaceKT-54508Re-design 'javaGetterName' and 'javaSetterName'KT-75549DeprecateKaTypeProvider#collectImplicitReceiverTypesKT-87210KaSubstitutor.Empty shouldn't be a classKT-63221K2: Analysis API: reworkgetDiagnosticsForElementAPIKT-85528Move diagnostic classes out of analysis-api-firKT-88489resolveToCallCandidates throws ClassCastException for callable reference expressions resolveToCallCandidatesKT-88645Stabilize KtResolvable(Call)KT-82397KaFunctionTypeshould offer context parameter types, not context receiversKT-73195AA FIR: missing annotations on function literalKT-89030[Analysis API] GeneralizeKaFirNestedInLocalClassFromCompilerPluginSymbolPointerKT-87557'Analysis API Public API Checks' run configuration should include the artifacts checksKT-88767Refine the new resolution APIKT-89175Add contracts to the new resolution utilitiesKT-84186Unresolved annotationClassIdreturns ""Backend. J2KLIB
KT-88163Allow to disable firAggressivePrunner for JklibBackend. Wasm
New Features
KT-88027K/Wasm: Exportcabi_reallocfunction from stdlib to support componentsPerformance Improvements
KT-91749Kotlin/Wasm: cos is ~47% slower in 2.5.0-RC than in 2.4.21KT-88469K/Wasm: consider inlining suspendCoroutineUninterceptedOrReturn and getCoroutineContext intrinsics on 2nd StageFixes
KT-89394[Wasm] stop creating of CoroutineImplStackSwitching at the call cite of suspendCoroutineUninterceptedOrReturnKT-86242K/Wasm: deprecate and prohibit usingwasmExportsKT-82950K/Wasm: stop providingwasmExportsinto generated JS filesKT-87862K/Wasm: introduce a separate diagnostic ID for companion object inside external interfaceKT-87125K/Wasm: share a common base class for all suspend functionsKT-66089K/WASM: assertSame failed in teststatic_smallIntIdentity.ktKT-89657[Wasm] Insvestigate performance issues with primitive box cachingKT-91167K/Wasm: suspend lambda containing a suspend call triggers unrelated file-property initializationKT-89267K/Wasm: calling a (T) -> R lambda with an argument that isn't a T traps instead of throwing ClassCastExceptionKT-87740K/Wasm: Incorrect wasm for codegen/box/basics/kt75483.ktKT-90107Kotlin/Wasm: empty string passed to a component traps in cabi_reallocKT-90119K/Wasm: ArenaLikeAllocator.allocationsToFree is only cleared on freeAllComponentModelReallocAllocatedMemory()KT-89547[Wasm] add test config for running stack switching with incremental compilationKT-73452K/Wasm: turning on range checks by defaultKT-87710[K/Wasm] initialization order of companion objects from super types differs from JVMKT-88291K/Wasm: Unsigned integer division by zero throws RuntimeError instead of ArithmeticExceptionKT-86207k/wasm: Add box tests/support for multi-value value classes and callable ref mergingKT-89345[Wasm] look into and unmute some CallableReferences benchmarks for Single Module ModeKT-89445Wasm: non-thread-safe instruction cache causes ClassCastException during parallel compilationKT-89315K/Wasm Standard Library Tests: Assertions are not enabledKT-89548[Wasm] clean up type codegen for stack switching and avoid leaking too many continuation types to non-stdlib modulesKT-88235K/Wasm: Grouping test infra causes d8: error reading module error on Windows (path length problem?)KT-87109K/Wasm: Companion block initializer block fails in multi-module scenarioKT-87329K/Wasm: child companion block static initializer runs before parent initializer in single-module modeKT-87128K/Wasm: investigate possible optimization of suspend "helper" functionsKT-87687Investigate whether unboxing needed when accessing suspendResult in transformed doResume for suspend functionKT-87583Wasm IC cache is not invalidated when kotlin.wasm.compilationMode changes causing IndexOutOfBoundsException in WasmDeserializerKT-88366[Wasm] mute failing coroutines stack switching test via WASM_IGNORE_FOR directiveKT-88387K/Wasm: DWARF debuginfo accidentally swaps files and foldersKT-79411K/WasmJs: "Can't link symbol kotlin.js/js|js(kotlin.String){}[0]"KT-83171K/Wasm: Investigate import.meta usage in mjs filesKT-85772K/Wasm: implement companion blocks and extensionsKT-88543K/Wasm: Automatically clean test output by defaultKT-88434K/Wasm: JS-to-Kotlin closure converter is shared between different external function types with the same JS-erased signature, injecting a wrong castKT-88808K\Wasm: separate CoroutineImpl and CoroutineImplStackSwitchingKT-87746K/Wasm: Investigate if it is possible to enable floating point const folding on Wasm backendKT-87742K/Wasm: initialization of properties with default value different from JVMKT-89009[Wasm/MMCW] Compilation fail with exception on simple projectKT-89198K/Wasm: invalid Wasm code(ref.cast to wrong type) for bound reference to inner-class constructorCompiler
New Features
KT-87767Add JVM target bytecode version 27KT-79656Useorg.jetbrains.annotations.UnmodifiableViewand/ororg.jetbrains.annotations.Unmodifiableto infer read-only types for Java entitiesKT-89201Implement "Strict equality for structural classes"KT-87345Swift Export: Support proper exception throwing from sync bridges in cross-language inheritanceKT-80943Context-sensitive resolution fails to look further than a typeKT-89096Rich Errors: Parser & PSIKT-86868Update checkers to supportlateinit valKT-86124Set attributeequalityBoundTypeto parametersKT-89098Rich Errors: ResolutionKT-89103Rich Errors: CheckersKT-89097Rich Errors: FIR TreeKT-2264Emit a warning about ignored (unused) binary operation resultKT-80964Improve error messages for compile-time constantsKT-87412Kotlin/Native: use JVM-like class initialization scheme with CompanionBlocksAndExtensionsKT-83040Collection literals: ensure normal interaction with CFGKT-85925Native: rework virtual trampolines machineryKT-68819Don't report "no corresponding expect/actual declaration" when signature contains error typesKT-58562More concise error for "Incompatible classes were found in dependencies"KT-81676Improve error reporting for underscores as type parametersKT-87422Smart casts inside the body of strictequalsKT-86127Add smart casts based on strict operator equalsKT-87420SetequalityBoundTypeattribute for generated equals in data and value classesKT-87417Generate prologue of strict equals in Fir2IrKT-87498Strict equals x interface delegationKT-87418Incompatible==/!=checks based on@EqualityBoundKT-86129StrictequalschecksKT-87419(De)serialize attribute set for strictequalsKT-88415Java type enhancement: support org.chromium.build.annotations nullability annotations as JSpecify equivalentsPerformance Improvements
KT-91549Slowdown in compose benchmarks in Float.fromBitsKT-88352JVM: redundantCharacterbox/unbox andRef.IntRefwhen a bound callable reference is passed to an inline function from within another inlined lambdaKT-89131JVM: Hoist ResultKt.throwOnFailure out of SuspendLambda.invokeSuspend switch casesKT-87570Kotlin/Native: improve RemoveRedundantCallsToStaticInitializersPhaseKT-89840Native: bad incremental clean build performanceKT-57995Extra anonymous class is created for lambda after upgrading from Kotlin 1.6.10 to 1.7.20KT-86022K2 frontend hangs in approximateToSuperTypeWithRecursionPreventionKT-66469Long compilation with mockk importKT-83068Investigate long compilation times with many generics & overloadsKT-69758FastJarFS - avoid copying data on inflating (JDK 16+)KT-87896Make check for JvmFieldApplicabilityProblem.NOT_PUBLIC_VAL_WITH_JVMFIELD not quadraticKT-87952Bound receiver wrapped in a cast is needlessly stored in a$receiverfield for property reference delegationKT-87033[Native] Optimize dumpObjcSelectorToSignatureMapping to execute during frontend phase, bypassing IR linkingKT-88435Kotlin/Native: Avoid redundant filtering in DevirtualizationAnalysisKT-88383K/N CallGraph: Eager check before pushing elements onto the stackKT-85899Performance problem around the second incorporation kindKT-52283Never ending type inference while compiling Kotlin code with lots of self pointing genericsKT-49139NI: EnumMap constructor call in Kotlin source causes OutOfMemoryError during compilation and analysis in IntelliJ IdeaKT-615Optimize instanceof check for nullable typeKT-89224Significant performance drop in MT intellij (checkers)Fixes
KT-87295Enable Return Value Checker by defaultKT-86086MakeIntrinsicConstEvaluationfeature stableKT-89646Add JVM target bytecode version 28KT-81760Kotlin/Native: incosistent handling of clashing declarationsKT-61582Kotlin/Native: deprecate and remove -generate-worker-test-runnerKT-80005Kotlin/Native: remove eager GlobalData initializationKT-86132Drop support of language versions 2.0 and 2.1KT-84904Alpha release of Multi-Field Value ClassesKT-86131Deprecate language version 2.2KT-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-86740K/JS: IllegalStateException "Serialization of IrErrorType is not supported" when type variable is inferred into empty intersectionKT-91524Callable references to declarations with context parameters get the "unsupported" error while being available through the compiler argumentKT-90233Compiler: allow inline value modifier combinationKT-89985InnerClasses entries lack ACC_IDENTITY with -Xjvm-enable-preview on JVM target 28KT-84562Get rid of usages of@K1Deprecation-annotated declarations in JVM backendKT-89687[JVM] SpecialBuiltinsMapping.getDifferentNameForJvmBuiltinFunction computes JVM signature of the sub-declaration instead of the overridden built-inKT-88455AssertionError "Inconsistent target list for lambda annotation" when Java annotation applied to lambdaKT-89698JVM:@Throwsis copied onto a bridge only when the overridden method is compiled from source, so incremental and clean builds produce different class files (JvmEnhancedBridges, 2.4.0)KT-89504VerifyError: Bad type on operand stack with startCoroutine on smart-casted nullable suspend function typeKT-87922K1FakeDescriptorsForReferencesKt classes duplicated between kotlin-scripting-compiler-embeddable and kotlin-build-tools-implKT-87983CCE on member extension property delegated to bound property referenceKT-87499ClassCastException "Float cannot be cast to Unit" when a suspend function's result is discarded in a when-branchKT-89915JVM: ClassCastException 'kotlin.Result cannot be cast to ...' in an indy SAM-converted lambda whose Java SAM parameter is@NotNullKT-89653Native: failing lldb tests with state checker enabledKT-90235Compiler (JVM): drop requirement of@JvmInlinefor inline value classKT-90234Compiler: don't report inline modifier is deprecated in combination with valueKT-89933Incorrect highlighting of a KDoc with a code block with commentsKT-90321K2 IDE: "Multiple plugins generated nested class with same name Companion" floods the IDE log for a class with@Slf4j(Lombok) and@SerializableKT-91112Type inference: reified Enum inferred as Nothing for a function-reference extension call since Kotlin 2.5KT-90707Parser: "Expecting ';' after the last enum entry" when an enum entry named error has arguments or a bodyKT-90315Value classes resolved first as a supertype are treated as identity classesKT-87569Support Valhalla for Kotlin Inline and Full Value ClassesKT-89433Frontend: Metadata of abstract/sealed full value classes declares equals/hashCode/toString that the JVM backend does not generateKT-88589Full Value Classes: irrelevant SMARTCAST_IMPOSSIBLE for value class implemented in another moduleKT-86556Account for CSR in compiler required annotations transformerKT-90051K/N: IrConstructorCallImpl is not expected crash in file lowering when@Entityuses@Indexwith vararg + default parametersKT-88316K/N: StackOverflowError in CastsOptimization when two nullable local variables are assigned to each other across nested loopsKT-88007Don't reportequals(Any?)in companion blocks of interfacesKT-87437Restrict interface companion block propertiesKT-82676Replace reflection-based RuntimeFeatureToFlagMap with code generationKT-87825Implement new frontend rules for companion blocks in interfacesKT-88408[IR] Consider eliminatingModuleDescriptorfromIrActualizermodule diagnosticsKT-87505False positiveINVALID_VERSIONING_ON_VALUE_CLASS_PARAMETERon value class secondary constructor with@IntroducedAtKT-85879Get rid of second incorporation kind in inferenceKT-87777K/N IC: "Undefined symbols for architecture" when an inherited open method becomes finalKT-89892[K/N] latin1Strings binary option is ignored with cachesKT-87904Incorrect $default method/constructor signatures when@JvmInlinevalue class parameter type is absent from compilation classpathKT-89980K2 loads full value classes from klibs without their value class representationKT-87330Introduce Static Initialization Control Flow Graph for ClassesKT-89876K/N IC: "File … is not found in cache" after a file is renamed or moved to another module (stale weak dependency)KT-87452Fix remaining issues in companion blocks and extensions on JVMKT-10001False unnecessary non-null assertion on a pair elementKT-6843NPE in REPLKT-46419FIR: Investigate how integer-literal resolution worksKT-63741K2: fix visibility inference with overridden + inherited memberKT-81874NPE related to data race during Application disposalKT-74051Add a Continuation for tail-call suspend functionsKT-89112Move transformationarrayOf(...)->[...]in annotations to constant evaluatorKT-89374Companion blocks: false positive PROPERTY_WITH_BACKING_FIELD_INSIDE_VALUE_CLASS for property inside companion block of value classKT-88520Equality applicability checker should account for custom equals in full value classesKT-84001KIAEWA: Exception in type checkers when classpath contains newer Kotlin-compiled dependenciesKT-86888Update PersistentMultimap to follow persistent collection naming conventionsKT-70118[KLIB Resolve] Stop using depends= property of klib manifest when building caches in NativeKT-89453INVALID_NON_OPTIONAL_PARAMETER_POSITIONignoresexpect-chain defaultsKT-89457companion block on@JvmRecordclass cannot be compiledKT-85168Generate static initializers as proper IR functionsKT-85104JVM compilation error when having TODO() as a parameter default value of an inline function when adding a call to itKT-82959IllegalArgumentException: Unhandled intrinsic in ExpressionCodegen for generated top-level declarationsKT-89259Collection literals: enabling+CollectionLiteralsBasedAnnotationResolutioncausesMISSING_DEPENDENCY_CLASSKT-89475Missed MISSING_DEPENDENCY_SUPERCLASS for parameters of value classesKT-89391KMP separate compilation: false-positiveEXPECT_ACTUAL_IR_MISMATCHon declarations from friend dependenciesKT-86282Implement FIR builder based on KMP parserKT-79562NPE when passing non-lambda argument of nullable non-suspend function type into function that accepts nullable suspend function typeKT-89466KMP Separate Compilation: NoSuchElementException in case of classpath substitutionKT-73165"ANNOTATION_ARGUMENT_MUST_BE_CONST" caused by Enum name as a constant in AnnotationKT-89157Remove temporary useless casts introduced by KT-79212KT-89206Inlining of TODO() as a default value leads to an internal errorKT-89533class KtValueArgument is not a subtype of class KtCollectionLiteralExpression for factory UNRESOLVED_COLLECTION_LITERALKT-88081Normalize Double.NaN and Float.NaN after constant evaluationKT-89430Don't store raw-fir generated tests in gitKT-86095"VerifyError: Bad type on operand stack" when inline+crossinline function returns anonymous object overriding internal suspend fun with yield()KT-83304Context sensitive resolution doesn't work on mutable collection operators (no explicit import from enum)KT-81558Context-sensitive resolution cannot resolve an unqualified enum entry in GradleProperty<T>-like casesKT-89642Disable feature typed equals in value classes for full value classesKT-87531AbstractMethodError on intersection override with@JvmFieldproperty when accessing property through interfaceKT-89415Refactor logic around FirParser.LightTree/MultiplatformParsing and USE_LIGHT_TREE configuration flagKT-80383Getter without a body is allowed on a property with an explicit backing fieldKT-89641Verify JS export works for full value classesKT-20245NoSuchFieldError on usage of crossinline lambda in anonymous object inside another anonymous object in inline functionKT-82900Language Feature EnhancedBridgesGenerationKT-89407When frontend reports diagnostic on null source, report as sourceless diagnosticKT-89476Diagnostic for incorrect@EagerInitializationusageKT-89068JvmExposeBoxed: secondary constructor of inline class is never exposedKT-89063JvmExposeBoxed allows to generate invalid Java method namesKT-83419K2: CCE wheninlinelambda changes avarinvolved in animpliescontractKT-89121[Native]@BindClassToObjCNameadapters from a cached module never reach Kotlin_ObjCExport_sorted{Class,Protocol}AdaptersKT-89744Apostrophe in an escaped identifier corrupts ARGUMENT_TYPE_MISMATCH diagnostic renderingKT-89341KMP separate compilation: false-positive EXPECT_ACTUAL_IR_MISMATCH on members of inner class with generics in outer classKT-89635False "Return type mismatch" in interface delegation when the delegated function with an implicit return type is declared in another fileKT-89762KMP Separate Compilation: EXPECT_ACTUAL_IR_MISMATCH caused by accessing a java field in a single platform projectKT-83340Investigate need ofKtRegisteredDiagnosticFactoriesStoragecomponent in AA modeKT-74793Parser: Property accessor of a non-local destructuring declaration leads to exceptionsKT-89168Reflection: support getDelegate() for companion block properties in interfacesKT-81075False negative MISSING_DEPENDENCY_SUPERCLASS on unresolved supertype of SAM constructorKT-86380New inline variables scheme: addition of this variableKT-89834Drop RawFirBuilderTotalKotlinTestCase.testPsiConsistencyKT-77583K2: Support repl snippets with LightTree/KMP-based raw FIR buildingKT-74304K2: WRAPPED_LHS_IN_ASSIGNMENT on annotationsKT-75366Provide proper keys for ScopeSession#getOrBuild usagesKT-89770KMP separate compilation reports EXTERNAL_TYPE_EXTENDS_NON_EXTERNAL_TYPE for external class extending JsAnyKT-89584Build rich references for suspend conversion & SAM constructor referencesKT-89837Correctly evaluatenamefor declaration that are imported with different nameKT-34051UnsupportedOperationException when using reified type inside lambda in inline functionKT-86093Context sensitive resolution does not apply if simple access is resolved to invisible qualifierKT-83498Implement LT support in the K2 REPLKT-89790Improve error reporting around new compilation schemeKT-89751K2 REPL: contracts of functions are not resolved inside REPL snippetsKT-89769FIR2IR throws "IR class for not found" when a class's supertype isn't exposed viaapiKT-87149Drop K1-dependent parts of the scripting compiler pluginKT-87856Investigate failures in scripting tests after a full switch to K2KT-89416Native: top-level properties are not initialized when checked for initialization state from another classKT-89313DNN in supertype leads to compiler crashKT-87596Kotlin/Native: port calls checker to LLVM passKT-89576PSI path in script compilation still depends on K1KT-47891JVM: "IllegalStateException: Bad exception handler end" with nested try/run/finally blocksKT-89232Align context-sensitive resolution with how collection literals are resolvedKT-89410Introduce WillBecomeValue annotationKT-82548K2: report a warning about annotations which target non-existent accessorsKT-89461KMP separate compilation: Incorrect fake-override is e/a mismatched in case of duplicated supertype in dependency classKT-86793setupCommonOptionsForCaches does not forward pagedAllocator (and other runtime constant options) to cache sub-compilationsKT-39697"Cannot infer type parameter" in map with java static or global method referenceKT-89451Suspend conversion: anullargument arrives non-nullKT-85853CompanionBlocksAndExtensions: companion block val in interface generates illegal private static field (ClassFormatError 0x1A)KT-90169Callable references: Array passed as a single vararg element for generic vararg function since 2.4.0KT-89655Prohibit lateinit in companion blocks in interfacesKT-90014K2 / JVM:IllegalStateException: Don't know how to compile annotation value ERROR_CALL 'Unresolved reference: <Strange deserialized enum value: ...>'when delegating to a Java interface annotated with a nested Kotlin enumKT-89390K/N IC: per-file caches are not invalidated when toggling -Xcompanion-blocksKT-89983Partial linkage doesn't report a value class whose superclass became an identity classKT-89982No warning for Kotlin/Native WeakReference and createCleaner on value class and primitive instancesKT-90352K/N: with -Xcompanion-blocks-and-extensions, a Kotlin subclass of an Objective-C class fails to link (undefined $clinit_trigger of the ObjC supertypes)KT-88576False-negativeOVERLOAD_RESOLUTION_AMBIGUITYon increment call in recursive initializerKT-87887KJS: Prefix increment on dynamic array access is lowered into no-opKT-84802Add new synthetic class flag to JVM metadataKT-89049JVM: do not generate DefaultImpls for companion block functionsKT-85307"Type argument is not within its bounds" for Java classes with recursive generic bounds (F-bounded polymorphism)KT-87676Context Parameters: Cannot find local variable '$context-String' with type java.lang.String when evaluating contextual call that uses lambda context parameterKT-88312Implement 'returnsParameter' contractKT-89184JVM: anonymous function SAM-converted via invokedynamic loses its non-null parameter assertionKT-11474ISE: Requested A, got foo.A in JavaClassFinderImpl on Java file with package not matching directoryKT-89651POSITIONED_VALUE_ARGUMENT_FOR_JAVA_ANNOTATION_WARNING is not reported for usage of Java annotation typealiasKT-89561Performance regression in body resolve around 8-10 Sep 2026KT-88667False negative POSITIONED_VALUE_ARGUMENT_FOR_JAVA_ANNOTATION on@get: use-site target and annotation constructor callKT-86453K2: Generate IrRich*Reference for all kinds of referencesKT-87284Implement type conversion from ILT/builtin numeric types into types marked with a special annotationKT-79212Resolve new type for class literal of unbounded reified type parameterKT-88715K/N: "Argument list too long" when linking with a large number of included static librariesKT-89589RuntimeException when const evaluation is made inside a companion block of a local classKT-33232DEPRECATED_JAVA_ANNOTATION: false positive for "Deprecated" annotation with "forRemoval" or "since" argumentsKT-89527Type arguments are allowed (and unresolved) with context sensitive resolutionKT-89523MFVCs don't allow version overloadsKT-57802K2: Backend Internal error: RecordEnclosingMethodsLowering.ktKT-59526Store annotation default values in metadata on JVMKT-82132False-positive type mismatch with -language-version 2.2KT-71854K2 IDE. False positive red code because of external annotation on a generic parameterKT-63454Properly check that inline fun is in the same module as callee inIrSourceCompilerForInlineKT-85188Don't poison binaries with companion blocks & extensions for LV >= 2.5KT-85230False negative deprecation diagnostics on import of member of nested classKT-80247No diagnostic on unresolved type annotation from a dependency in an inferred typeKT-86524JvmExposeBoxed: Collection does not implement abstract methodKT-86464SupportisPublicAbiJVM metadata flag for anonymous and synthetic local classesKT-85764Native: Prohibit compiling sources in 'kotlin' package by defaultKT-86905DFA-based exhaustiveness bug with implicit companion accessKT-87347False negative NON_ABSTRACT_FUNCTION_WITH_NO_BODY/MUST_BE_INITIALIZED for companion block member in interfaceKT-87360False positive DELEGATED_PROPERTY_IN_INTERFACE for delegated companion block member in interfaceKT-87364False positive BACKING_FIELD_IN_INTERFACE on companion block member in interfaceKT-87351False positive WRONG_MODIFIER_CONTAINING_DECLARATION on internal companion block members in interfaceKT-87413CompanionBlocksAndExtensions: impossible to use field in companion extension properties getters/settersKT-87507False-positiveABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTEDon fake-override with value parameter of type missing in dependenciesKT-30062"AssertionError: Recursion detected on input" with class implementing itself by delegationKT-85417K2: False negative SUBCLASS_CANT_CALL_COMPANION_PROTECTED_NON_STATIC diagnostic when superclass is genericKT-73771K2: Infinite compilation caused by buildList without typeKT-83575Native: perf logging doesn't work correctly for subcompilations (like per-file caches)KT-87278Smartcast toAnyin RHS of==with nullable type parameterKT-87520Implicit JvmExposeBoxed breaks delegation by interfaceKT-87592Kotlin/Native: make remove redundant safepoints phase a proper LLVM passKT-72706Confusing "INVISIBLE_REFERENCE" when calling private constructorKT-84406Remove support for IR serialization in JVMKT-82677Switch latest stable version in Kotlin project to 2.5KT-87194K/N IC: changing an external library to an already-cached version in ~/.konan doesn't rebuild application's cacheKT-87504Do not make@IntroducedAta compiler-required annotationKT-87550Drop the "too complex expression" error with@IntroducedAtKT-87273K/N IC: cinterop klib caches are not recompiledKT-86332False positive MISSING_DEPENDENCY_IN_INFERRED_TYPE_ANNOTATION for implicit lambda parameters with inaccessible type annotationsKT-87335Context parameters: wrong LINENUMBER emitted for context argument loads in JVM bytecodeKT-84780The INITIALIZER_TYPE_MISMATCH diagnostic is reported on the assignment operator (=) instead of the initializer expression when there is a type mismatchKT-87073CompanionBlocksAndExtensions: calling companion extension function from project/binary dependency fails with java.lang.IndexOutOfBoundsExceptionKT-87775Incorrect RETURN_VALUE_NOT_USED_COERCION where regular 'Return value not used' was expectedKT-86554Check suspicious when over ConeKotlinType in JavaOverrideCheckerKT-87786MakeConeLookupTagBasedTypeinto a sealed classKT-87606Compiler crash on red code with redeclaration of type parameter which is used as expressionKT-87202K/N IC: NoSuchFileException: metadata.properties when upgrading Kotlin from <2.2.10 to >2.2.20KT-87695Compiler crash while compilation of MFVC destructuring with a variable name mismatchKT-87696NBD doesn't work for smart-casted MFVCKT-87546Fix slightly confusing test data for explicit context arguments in case of Java overrideKT-87553K2: Incorrect argument evaluation order with explicit context argument in presence of explicit extension receiverKT-86635Analysis API: arguments of applied annotation is sometimes (incorrectly) emptyKT-75945Indy: Allow lambdas with annotationsKT-85143Remove the unfinished "compile against klib" feature on JVMKT-87436Separate LFs and compiler arguments for companion extensionsKT-87725Prohibit lambda implementations of sealed Java interfacesKT-87466JvmExposeBoxed: Cannot generate code for delegating constructor of data class in IJKT-87189False negative NoWhenBranchMatchedException: when subtype implements multiple sealed interfacesKT-87838IntroducedAt: Using@IntroducedAtin ordinary class constructor with inline class parameters leads to platform declaration clashKT-87297'Underscore for unused variable' feature should be stable and enabled by defaultKT-65195K2: Unexpected exception when executing dynamic array element inc/decKT-87269Kotlin Debugger: ISE “Non-empty unresolved argument list.” on evaluating serializable value class with custom serializerKT-82461Context sensitive resolution can use extension properties declared on Any receiverKT-82465Context sensitive resolution does not resolve extension properties in presense of any additional receiverKT-82462Context sensitive resolution can use extension properties from importsKT-72903K/N: combineContextandKonanBackendContextKT-29890Inline constructors for arrays could not be inlinedKT-87864K2IdeK2CodeKotlinSteppingTestGenerated$StepOver$Uncategorized.testSoSuspendableCallInEndOfFun failsKT-81816False positive "Unreachable code" with lambda and elvisKT-87255CompanionBlocksAndExtensions: companion blocks initialized before enum entiresKT-87975Reenable inline checks in noinline parameter default valuesKT-87821Do not promote visibility of local lambda classes in private inline scopes to PublicKT-87926USELESS_JVM_EXPOSE_BOXED confuses in case of argument presenceKT-86518K2: Enrich NoWhenBranchMatchedException with additional information about the causeKT-87061Companion blocks: compilation fails when companion function names clash with enum methodsKT-87931CCE caused by suspend conversion in receiver positionKT-87577Compiler crash on red code with ambiguous type parameter used as expressionKT-88045Delete leftovers of javac integration (javac-wrapper) subsystemKT-87103Drop compiler/fir/dumpKT-87830Complementary value sets should include non-direct inheritors of supertypesKT-87261K/N debug: 'is' check miscompilation — local variable reports wrong type when two smart-cast extractions precede an inline loopKT-88142False negative INTERFACE_AS_FUNCTION when Java interface contains function called toString, equals or hashCode with receiver or context parametersKT-86543IllegalStateException: Parent of this declaration is not a class: PROPERTY IR_EXTERNAL_DECLARATION_STUBKT-88141False negative MANY_IMPL_MEMBER_NOT_IMPLEMENTED when method is called equals, hashCode or toStringKT-88128RewriteJvmBackendClassResolverto get rid of descriptor usagesKT-88127Remove or replace usages ofpsiElementutilKT-81416Native: compiler fails in case of cross-module Volatile referencesKT-65832K2: Support diagnostic suppression with complex expression argumentKT-88149Mention operator token in UNRESOLVED_REFERENCE_WRONG_RECEIVERKT-88134Improve diagnostics for name-based-destructuring=complete and using obsolete syntaxKT-87664JvmExposeBoxed: exposing constructor of ordinary class changes behaviorKT-87368Adjust the message ofIMPOSSIBLE_IS_CHECKKT-88066Java Direct: (Re)introduce lazy AST calculationsKT-88079Java Direct: Get rid of VFS and VirtualFile useKT-88064Java Direct: Use lexer for lightweight "pre-parsing" instead of regexesKT-88101Java Direct: Deduplicate repeated type resolution logicKT-88103Java Direct: use FirLazyJavaAnnotationList to avoid cycles in enumsKT-86109K2: Compiler crash on mix of static/companion in jkj hierarhyKT-86742JVM: missing accidental override error on companion block membersKT-86119JVM builtins dump for JDK21 does not include methods introduced after JDK8KT-80741Fix rendering of inner classes with generic outer classesKT-67014K1/K2 handle when expression as annotation target differentlyKT-87129Decide what to do with tests in ScriptGenTestKT-87549@IntroducedAtdoes not work correctly with inheritanceKT-73462AssertionError "FUN LOCAL_FUNCTION_FOR_LAMBDA has no continuation" on suspend lambda with parameter of functional type called from another fileKT-85403kotlin.NoWhenBranchMatchedException on Kotlin Native with sealed interfaceKT-88102Incompatible return type in delegated member not reported if it implements intersection overrideKT-88487Return value checker: unresolved TODO about Array.contains in stdlibKT-88480KMP parser: string literal content is remapped to IDENTIFIER if it matches a soft keywordKT-87389Change companion extension metadata serialization formatKT-88191KMP Separate Compilation: Problems withthrowNoWhenBranchMatchedExceptionfunctionKT-88340'returnsResultOf' contract works incorrectly with named argumentsKT-87881IllegalStateException: Expected some types crash in FIR type inference when buildList contains implicit receiver call and nested when expression with !is smartcastKT-70450OuterThisLowering - consider merging it into InnerClassLoweringKT-84499Kotlin/Java interop: type mismatch when overriding methods from Java class with module import declaration (Java 25)KT-87659No warning emitted when runtime-retained annotations on lambdas are silently discarded by invokedynamic codegenKT-88132False positive INCORRECT_RIGHT_COMPONENT_OF_INTERSECTION when typealias for Any used as right component of definitely-not-nullable supertypeKT-88013Native: migrate CastsOptimization from Predicate.Empty to Predicate.True and fix Predicates.orKT-88662Render the actual receiver type inUNRESOLVED_REFERENCE_WRONG_RECEIVERKT-88326Enable IntrinsicConstEvaluation since 2.5KT-88332IntrinsicConstEvaluation: false positive "const val initializer must be a constant value" on division by non-zero value that overflows to int zeroKT-88099"ArithmeticException: / by zero" caused by Int.mod on division by zero in constant evaluationKT-88721KMP Separate Compilation: missing fake-override for internal declaration from a friend moduleKT-87165[K/N] computeTypes phase breaks boxed equalityKT-87967Implement deprecation warning for concurrent maps purely implementation hierarchyKT-88766K2 KMP JVM IC: "NoSuchElementException: Key Module is missing in the map" when an actual and its expect are recompiled togetherKT-88190False positive UNEXHAUSTIVE_WHEN_BASED_ON_JAVA_ANNOTATIONSKT-36111False negative warning on exhaustivewhenwith flexible type of sealed class in subjectKT-71600K2: missing WHEN_ENUM_CAN_BE_NULL_IN_JAVAKT-67462Use new lowering phase creation API in Native backendKT-88228JVM: IllegalAccessError at runtime when delegating property to private member of sealed superclassKT-64802K2: Investigate behavior change related to PCLA+Captured types+ILTKT-71754PCLA: compile-time failure on fixing a type variable on demand for an indexing operator assignmentKT-53422NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER in flow.collectKT-88218-Xheader-mode: inline function bodies replaced with aconst_null/athrow stubs instead of being preservedKT-78002K2: local class function annotation observes the function parametersKT-85368ConstraintIncorporator#insideOtherConstraint is order-dependentKT-77718K2: Remove workaround for KDF in FIR2IR implicit cast generation for receiversKT-87788Incorrect smart cast stability of implicitwhensubject variablesKT-88761Native: remove custom validation phasesKT-64219K2, Wasm: Green expect-actual code allows for invalid external type hierarchyKT-88860Fir2Ir crash "Expected argument type to be Nothing?" when a non-null value is null-checked and passed to a generic functionKT-88769KMP separate compilation: incorrectEXPECT_ACTUAL_INCOMPATIBLE_CLASS_SCOPEin case of complex inheritance by delegationKT-88770KMP separate compilation: false-positive SUBCLASS_CANT_CALL_COMPANION_PROTECTED_NON_STATICKT-88580Kotlin/Native Release: "Unexpected receiver type: kotlin.collections.ArrayList" in generic collection codeKT-88012Abstract diagnostic factories from source typesKT-88307Support actualization of multiple top-levelexpectfunctions with the sameactualKT-88811Compiler crashes with "IllegalArgumentException: List has more than one element" when separate KMP compilation is combined with useMetadataOnIncrementalClasspathKT-88934Error in IrConstExpressionTransformer when lowering constant expression in subject for function referenceKT-88961K2: FirPrefixAndSuffixSyntaxChecker misses literal prefixes/suffixes outside binary expressions with the LightTree parserKT-88427K2: compiler crashes with IllegalArgumentException when escaped class name containing braces is used in diagnostic type renderingKT-89016Replace early return with assertion in function type conversionKT-89008Constant condition elimination may break debug information of inline scopesKT-86376New inline variables scheme: incorrect line numberKT-88078Java Direct: Refactor binary class finder entanglementKT-88304java-direct: JavaUsingAst tests silently fall back to the PSI-based finder, hiding java-direct failuresKT-88260java-direct: support Java 25 module import declarations (JEP 511)KT-89013K/N: auto-built release compiler caches are compiled at O1, not O3KT-87540Fix potential issues in explicit context arguments implementationKT-88369JvmExposeBoxed on overrides makes KAPT generate a standalone method with faulty@OverrideannotationKT-88325JvmExposeBoxed: False-positive "no effect" warning on extension propertiesKT-88388JvmExposeBoxed: Exposed constructor leads to NSME from another moduleKT-87940[DFA] Remove VariableStorageKT-89087JVM: Initialization order of companion blocks is incorrectKT-89065JVM: companion block functions in interfaces do not compile with-jvm-default=disableKT-89123Keep the visibility inconsistency about data class copy and primary constructor as a warningKT-87025Support aliased imports to compiler required annotationsKT-87072SINCE_KOTLIN doesn't work with non-literal argumentsKT-87020Type aliasedAnnotationTargetused in@Target()`KT-77362JVM diagnostics are not properly reported for scripts and REPLKT-89043Explicit context arguments: align sinceVersion with the 2.6.0 Stable planKT-89057IllegalArgumentException: source must not be null in FirOverrideCheckerKT-88399K2: StackOverflowError in FirPrefixAndSuffixSyntaxChecker.getLeaf for a long string-concatenation chainKT-88995Inline scopes numbers: wrong call site line numbers when a default argument value contains an inline callKT-88339JvmExposeBoxed: no null check is generated in exposed methodsKT-87385Ensure that KMP mismatches in libraries in the HMPP scheme are reported reasonablyKT-89183JVM: LambdaConversionException on JDK 9+ when a SAM method parameter is a type parameter with two interface upper boundsKT-89325Java Direct: no supertypes on resolution due to reentranceKT-86046Put@K1Deprecationto all public declarations of K1 modulesKT-88953CCE caused by suspend conversion of nullable argument to nullable expected typeKT-87372False positive INVISIBLE_REFERENCE when accessing protected companion block member of superclassKT-86978Type arguments are allowed (and unresolved) in qualifiers in compiler-required annotationsKT-89196@IntroducedAtdoesn't discover default values in scenario with@ExpectRefinementKT-89167Internal compiler errors on const evaluationKT-89134TRIM_MARGIN_BLANK_PREFIXwhen the prefix is an expressionKT-89039JVM: Companion inline function with a default value leads to RuntimeExceptionCompose compiler
b/485865131Removed deprecatedIntrinsicRememberCompose feature flagb/485865131Removed deprecatedStrongSkippingCompose feature flagb/555304803Fix parameter traversal inComposableLambdaTokenizer.captureInsnCountb/539644912[Compose] Support rich callable references for@Composablefunctionsb/546101628Fixed a bug that caused miscompilation whenever awhenexpression had a result that was computed by anotherwhenexpression, and the innerwhenexpression had a@Composablecall in one of its conditions.b/549552317Fixed a bug that, in certain cases, prevented execution of non-local returnstatementsinside lambdas called fromwhenexpressions.b/481422057Made the applier inferencer support repeatedComposableTargetannotations per the semantics described in the documentation ofComposableTargetb/530458587Start initializing the fields ofComposableSingletonsobjects lazilyIR. Inlining
KT-86558Forbid accesing volatile references after inliningKT-72464[Native][JS][Wasm] Non-local return through suspend conversion breaks the IR inlinerKT-71896KLIB IR inliner: Enable cross-module inlining in LV=2.5KT-88020[KLIBs] Enable cross-module inliner in stdlib & kotlin-testKT-86578Leaking of a private entity through a companion extension: cross-module caseKT-87829Volatile field leaking through internal inline function in friend moduleKT-87521renderCascadingInlining throws NPE when reporting an AFU-transformed functionKT-81022KLIB inliner: Don't specify language features in test runners for IR Inliner on 1st stageIR. Interpreter
KT-84627Disable IR interpreter in the compilerKT-87043Remove IR interpreter sources from the compilerIR. Tree
Fixes
KT-88082Do not allow constant folding if the resulting expression is Double.NaN and Float.NaNKT-87954UsekotlinLibraryfrom IrModuleFragment instead of a library from ModuleDescriptorKT-87836Make sure that type, value and kind in IrConst are coherentKT-87442[IR] Introduce 1st stage warning on failed tailrec optimizationKT-89203IR validation: New checker to prohibit use of legacy Ir*Reference nodes on 1st compilation stageKT-83236PeopleInSpace_mpp compilation error: The symbol table has been sealedKT-78960[FO] Limit static fake overrides generation for static functionsKT-85698Type parameter is out of bounds (in setter) for an extension property with type parameterKT-85896Type parameter is out of bounds (in setter) for a property with context parametersKT-87962[IR] Add a checker that IrClass.superTypes is not emptyKT-87732Don't useIrBuiltInsOverDescriptorsin KLIB tool'sdump-ir-inlinable-functionscommandKT-87438Make sure there are no duplicated names in lowerings on first and second stagesKT-87300IR: Replace module reference inir.declarations.createEmptyExternalPackageFragmentfromModuleDescriptortoIrModuleFragmentKT-87198IR: AddIrModuleFragmentlink toIrExternalPackageFragmentKT-77049Avoid failing to produce an IR dump in testsKT-88177IR: MarkDescriptorVisibility.isVisiblewith@ObsoleteDescriptorBasedAPIand ensure it is not used outside the old frontend and psi2irKT-84335[Klib] Carefully revise usage of IR validator checkers in testrunnersKT-88146ReplaceIrDeclaration.modulewithIrDeclaration.moduleFragmentKT-69305Re-enable reporting out-of-scope type parameter usages during pre-lowering IR validationKT-87456Make sure IR renderer is working correctly withisStaticcallKT-85576KLIBs: Add PL tests with companion blocks and companion extensionsKT-70048IR: remove addSimpleDelegatingConstructorKT-88693Investigate using the same IR validation settings for all backendsKT-88610Type parameter is out of bounds while returning fallback valueKT-88864Cache deserializers using a stable key inside IR linkerKT-88556PL: Companion extension receiver is missed during the rendering processJVM. Reflection
New Features
KT-42082Ability to retrieve a container/owner class of the KProperty/KFunctionKT-87955Reflection support for contextualized callable referencesKT-85904Reflection: add a way to get companion extension classKT-84275Support companion blocks & extensions in reflectionPerformance Improvements
KT-87408kotlin-reflect: KCallable.callBy on a bound::copyreference is ~55x slower since 2.2.20KT-84354kotlin-reflect: replace usages of SoftLazy with regular safe-publication lazyFixes
KT-91317Reflection: IAE "fromIndex(1) > toIndex(0)" on KClass.members of stdlib inline classesKT-80710Reflection: change KCallable representation to avoid dependency on K1KT-87367Reflection: memberFunctions fails on suspend-implementing classesKT-89732Reflection: IllegalStateException in CovariantOverrideComparator for Java interface inheriting both raw and generic method with same erasureKT-88503KType.isMarkedNullable always returns false for@Nullable-annotated Java parameters in K2 reflection implementationKT-88939Reflection:@JvmStaticobject function parameter annotations are off-by-oneKT-88944Reflection: member enumeration on built-in types throws KotlinReflectionInternalError in new implementationKT-88988KotlinReflectionInternalError when reading annotations of an interface property through a sub-interface that does not redeclare itKT-88989Reflection: javaType is not supported when the type mentions the function's own type parameterKT-89000KotlinReflectionInternalError on Array size.getter.annotationsKT-89019Reflection: Java Enum.valueOf(value) has lost its parameter nameKT-89280NoSuchElementException in argumentsMakeSenseOnlyForMutableContainer for Java non-static inner class of generic outer classKT-87363Reflection: kotlin.Any constructor exposes@IntrinsicCandidateannotation in the new implementationKT-89918Reflection: IllegalStateException while processing the times overload during Duration property lookupKT-90525Reflection: "MutableCollectionKClassImpl cannot be cast to ClassBasedDeclarationContainer" from KType.classifier of annotated Java collection typeKT-89419Reflection: parameter annotations on bound constructor reference are loaded incorrectlyKT-85735Reflection: Java wildcard type based on Kotlin type with declaration-site variance is loaded differently in new implementationKT-89949Reflection treats full value classes and Java value classes as inline classes when calling functionsKT-89952Reflection fails with NoSuchElementException when an inline class wraps a full value classKT-89956KClass.isValue of mapped builtins like kotlin.Number ignores that their Java class is a value classKT-87308Reflection: KTypeParameter instances not equal for bound/unbound KPropertyKT-86926Reflection: references to functions inherited in Java are not substituted in the new implementationKT-87356New Reflection: KotlinReflectionInternalError on .annotations of primitive/array constructorsKT-87365Reflection: java.util.LinkedList::class.supertypes contains a duplicate MutableList<E!> entry in the new implementationKT-88145Investigate potential bug caused by incorrect statics handling in KClassImpl.Data#getInlineClassUnderlyingTypeKT-87369Reflection: KClass.members fails on Java class with self-referential raw type boundsKT-87464Reflection: property accessor parameters are equal to property parameters in the new implementationKT-87581Reflection: extra abstract invoke() method shown for a Java class implementing a functional interface in the new implementationKT-87948Reflection: AssertionError "Different tree sizes of bounds" on inheritance from Java raw class with self-recursive bound with method overrideKT-87709Reflection: "invoke" in classes inheriting from suspend function types is loaded incorrectlyKT-89003Reflection: top-level properties and functions are shown java-wayJavaScript
New Features
KT-49791KJS: Provide option to exportdynamicandAnyasunknownKT-87027[Effect Analysis] Propagate effects across the call graph based on function body callsKT-87026[Effect Analysis] Introduce a lowering for analyzing mutation of inputs and outer stateKT-87029[Effect Analysis] Leverage effect analysis results in DCE to delete unused properties' initializersKT-87024[Effect Analysis] Mark up kotlin-stdlib declarations with effect annotationsKT-88294Add es2020 target for Kotlin/JS and Gradle pluginKT-88024KJS: Allow exporting interfaces nested in other interfaces to JavaScriptPerformance Improvements
KT-89682K/JS & K/Wasm: Initialize trivial objects eagerly even in dev modeFixes
KT-91371K/JS: extending a JsExport-ed interface breaks property accessKT-80188Design exporting of suspend lambdas into JS/TSKT-17719JS: integer division by zero does not throw exceptionKT-49422Fix test about support of DefinitelyNotNull type in backendsKT-86273@JsExport.Ignore does not work properly with data classes propertiesKT-64821KJS: "TypeError: * is not a function" with class which extends suspend lambdaKT-90912K/JS: IR-based TypeScript export loses abstract modifier on abstract suspend method with a default argumentKT-90587K/JS: Exported abstract suspend functions are not callable from JSKT-90564K/JS, K/Wasm: top-level suspend function doesn't trigger file properties initializationKT-90843Investigate flaky JS/Node Misc tests in Kotlin 2.5KT-86954K/JS: hashCode() of Double/Float disagrees with equals() for NaN valuesKT-89920K/JS: Adapted::ulongArrayOfreference does not unbox ULong arguments, producing a corrupted ULongArrayKT-89919KJS: "Unhandled JavaScript exception: array.slice is not a function" when using non-adapted ::uintArrayOfKT-89591JS plain objects: generated top-level invoke/copy leak visibility for internal interfacesKT-52772KJS: Generated *.d.ts files should use type "unknown" in favour of type "any"KT-89144[JS, Wasm]static_init_calledfield for static initializers is not initialized correctlyKT-87516[K/JS, K/Wasm] Companion objects coming from super interfaces are not initializedKT-86934K/JS: Stack overflow when implementing interface with suspend fun using anonymous objectKT-85047Kotlin/JS:@JsStaticon suspend fun of class companion generates incorrect d.tsKT-89372KJS: Run the second DCE pass after the optimization pipelineKT-72720Setp up a nightly test suite for running all JS compiler tests with -Xir-generate-inline-anonymous-functionsKT-85540Drop longArrayClass definitions from boxedLong.kt and longAsBigInt.ktKT-88343KJS: ReportJS_MODULE_PROHIBITED_ON_VARwhen@file:JsModule` is presentKT-83337KJS: Difference in behavior on nested class initializationKT-89290Web: companion block members are not initialized when observed from a nested classKT-89978JS and Native box single-field full value classes and call equals() when comparing them with ==KT-89984JS: nullable value class over a nullable type parameter holding null is treated as nullKT-89449Kotlin/JS: Member names no longer minified in productionKT-13338JS: don't generate new class/object for empty enum entryKT-73067Drop support for the legacy JS metadata from the metadata decompilerKT-75176Add infrastructure for bundle size testingKT-85990K/JS: Default parameter values ignored in@JsStaticsuspend functions when class is exportedKT-86433JSCODE_ERROR for object destructuring assignment with default valuesKT-86437Incorrect handling of array destructuring with elisionKT-87377External classes can have field names colliding with minimized subclass field/method namesKT-86648[K/JS] Support companion blocks and extensions in TypeScript exportKT-87793[Wasm, JS, IC] Invert IC cache invalidation keys listKT-87352Kotlin/JS: Ignoretypealiasinside@JsExported classKT-88015KJS: Exported sealed interfaces should not be implementable from TypeScriptKT-88117K/JS: duplicated expression in generated JS comma expression for IrCompositeKT-87901KJS: Perform WhileConditionFolding on IR instead of JS ASTKT-86771KJS:@JsExport.Ignore on a Long member still triggers the -Xes-long-as-bigint compilation errorKT-87008K/JS: Preserve containers' names when lifting static members in StaticMembersLoweringKT-87774KJS: Refactor org.jetbrains.kotlin.js.testOld.utils.DirectiveTestUtilsKT-88698[K/JS, tests] Remove obsolete DISABLE_IR_VISIBILITY_CHECKS from kotlinx-serialization test dataKT-88571K/JS: "llegalStateException: Internal error: cannot find external signature" caused by@Serializableenum in 2.4.20-RCKT-87753Add "scopes" decoding to ECMA426BasedSourceMapParserKT-88463K/JS: Rewrite JsToStringGenerationVisitor to KotlinKT-87127KJS:@JsPlainObjectfactory contains duplicated parametersKT-88158KJS: Properly export types of annotation classes to TypeScriptKlibs
New Features
KT-86840KLIBs: Implement a component inside the compiler to compute DAG of dependencies for a given set of librariesKT-86081KLIBs: Support moving companion fun to parent classPerformance Improvements
KT-89498IR linker performance: IrFileDeserializerImpl.getAllMatchingSignatures()Fixes
KT-73115Don't consume old KLIBs produced by compiler versions < 1.6.0KT-89825K/N: "IrClassSymbolImpl is already bound" when two cinterop libraries in the same package declare the same C structKT-87445Native: Rework internal presentation of KFunction to support references with context parametersKT-87487KLIBs: Don't serialize empty metadata package fragmentsKT-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 originKT-81624[KLIB Resolve] Kotlin/Native: -no-default-libs may lead to the final binary depending on a lot of system frameworksKT-61096[KLIB Resolve] Drop KLIB resolve inside the Kotlin/Native compilerKT-84838Get rid ofModuleDescriptorfromIrModuleDeserializerKT-87387Fix K1 API usage in:kotlin-util-klib-metadataKT-89482[KLIB] Introduce special signature indices in regular & C-interop Native KLIBsKT-89921klibs: failure with two identical static inline functions in the same file in different classesKT-89276KLIBs: Check remaining usages ofKlibMetadataProtoBuf.Headerin compiler's source codeKT-84836Minimize usages of IrBuiltIns in the KotlinIrLinkerKT-81947[Wasm] Klib backward and forward compatibility testingKT-86320[PL] Replacing unusable classifiers with Any? type may cause a signature clashKT-87104Make org.jetbrains.kotlin.konan.file.File to be implementation detail of the compilerKT-87450Advance KlibAbiCompatibilityLevel to 2.5KT-87447Wasm: Rework internal presentation of KFunction to support references with context parametersKT-87443KLIB: Store metadata flags in manifestKT-87625Wasm: a callable reference bound to a null receiver equals an unbound referenceKT-54019[PL] Unimplemented FO: Adding interface to abstract parent + direct reference to absent member: JS build is successful, Native failsKT-86572-Xheader-mode: header klib omits members provided by interface delegation (by)KT-77818[KLIB resolve] "The same 'unique_name=kotlin' found in more than one library" warning during metadata compilationKT-87454KLIBs: Add PL tests for references with context parametersKT-86687SplitKLIB_WRITINGmetric, toKLIB_IR_WRITINGandKLIB_METADATA_WRITINGKT-87965[Tests][Klibs] Allow generated version overload wrappers appear during pre-serialization lowerings as legitimate Klib ABI entries.KT-87787PL: callable references to methods/properties of removed companion objectLanguage Design
KT-12719Must-use return values: warn about unused return valuesKT-89798Alpha release of companion blocks and extensionsKT-86090Stable release of "IntroduceAt": binary compatibility for optional parametersKT-19627Object (name-based) destructuringKT-22505Support calls to trimMargin/trimIndent as initializer for const valsKT-90084Name-based destructuring: switch default to "syntax-only"Libraries
New Features
KT-83426Add Tau=2*Pi to the stdlibKT-24908CodePoint value classKT-6938Boolean.onTrue/onFalse, ifOrNullKT-89662Stabilize Uuid.Companion.generateV{4,7}KT-89629Make some of the Timer.schedule overloads ignorableKT-87021[Effect Analysis] Introduce a new annotation for marking stdlib functionsKT-89332kotlin-metadata: stabilize RVC-related APIKT-78462Annotate kotlin-stdlib-jvm with@IgnorableReturnValuewhere appropriateKT-39661Support TypeVariable.getGenericDeclaration for types created in KType.javaType in kotlin-stdlibKT-88037kotlin-metadata-jvm: add readLenient()/readStrict() to KotlinModuleMetadataKT-88708Consider documenting that MutableMap.put keeps the stored key instancePerformance Improvements
KT-91066Kotlin/Wasm: KClass.hashCode() allocates and hashes the qualified class name string on every callKT-71987K/N: Optimize Float.ulp & Double.ulpKT-89899K/Wasm: Optimize Double.ulpFixes
KT-48530Asymmetric equality for progressions and rangesKT-86051Check the Reflect API surface lib for the Companion Blocks and extensionsKT-89072Kotlin/Native: 1.0.pow(NaN) returns 1.0 instead of NaN from the contractKT-64916Update Dokka build config to use JB Gradle EnterpriseKT-64200Dokka Integration tests refactoringKT-64377Update Dokka Gradle integration tests build configurationKT-82882Migratekotlinx-benchmarksGradle plugin from KLIB resolver toKlibLoaderAPIKT-89177Aggregate functions accepting a destination collection should be annotated with IgnorableReturnValueKT-85126Increase StringBuilder.append(obj: Any?) deprecation level to ERRORKT-89560Make kotlin.concurrent.thread's return value ignorableKT-88241kotlin-metadata-jvm: Consider renaming isStatic to isCompanionBlockMemberKT-56363Kotlin/Native: NativeRandom does not behave well with multiple threadsKT-89174Incorrect exception type documented in random function for rangesKT-86151AtomicFU + companion block: compiler plugin generated invalid IRKT-78707Wasm: Throwable.stackTraceToString misses exception's class if it has no message or causeKT-78998K/Wasm: consider using qualified name instead of simple name for JS Error created for exceptionsKT-65526Rewrite builtins as expect-actualKT-52400Deprecate@BuilderInferenceKT-86956Remove the JS guards from allDistinct NaN tests once KT-86954 is fixedKT-87312Stabilize RVC and allow@IgnorableReturnValueeven in disabled checker modeKT-87849Set@SinceKotlin(2.3) for ignorability annotationsKT-87613Test Federation: Review domain Core Libraries Smoke & Contract testsKT-86760Consider deprecating the assertNotNull 3-arg overload accepting a lambdaKT-57134Native: Consider introducing public ExceptionInInitializerError and NoClassDefFoundKT-86680Revert allEqualBy to == comparison once KT-86678 is fixedKT-87779K/Wasm: remove DoNotInlineOnFirstStage from coroutine-related APIsKT-87780K/Wasm: review coroutine-related APIs annotated by PublishedApiKT-87407Adapt kotlinx.metadata to changes in companion extension metadata formatKT-78174Improve kotlin.AutoCloseable documentationKT-86049Check serialization lib for the Companion Blocks and extensionsNative
New Features
KT-86815[K/N] Header mode for cinteropFixes
KT-87869Native: Xcode 27KT-84955Deprecate apple x86_64 targets as ErrorKT-86678K/N: == on boxed Double/Float disagrees with equals() for NaN valuesKT-89258Kotlin/Native: mute volatile benchmarksKT-89637K/N: Linking of linux (x64/arm64) binaries with cinterop on Windows is failingKT-87872Native: a few tests inObjCToKotlinSteppingInLLDBTestfail with Xcode 27KT-89355Kotlin/Native: some benchmarks are missingKT-89541K/N: Enabling-Xcompanion-blocksin stdlib breaks some callable reference tests with OPT, NO_CACHEKT-85131Native: freeze inLLVMGetTargetFromTripleduring a parallel test runKT-88965[Native] Update minimal Xcode versionKT-88857Regression in LibraryPathFilterNative. Build Infrastructure
KT-87996K/N test task fails with "No cache found for library"Native. C Export
KT-89632[K/N][CExport] Header declaration order depends on -Xinclude orderKT-87538Kotlin/Native: hide companion blocks and extensions from C exportNative. C and ObjC Import
KT-81934Swift export should look upSwiftBridgeandSwiftNamewhen translating types from platform librariesKT-89401K/N: NPE in IrLazilyBoundAnnotationImpl when a cinterop klib references an annotation from a regular klibKT-89463Native: 'Unable to compile C bridge' when implementing UIScreenshotServiceDelegateProtocolKT-84721Generate C-interop KLIBs in previous ABI version in Kotlin 2.5.0KT-88374Kotlin/Native: deprecate CStructVar.Type with errorNative. ObjC Export
KT-88052[ObjCExport] AA: Property names are mangled differently and accessors do not match K1's outputKT-70626ObjCExport: init constructors order in ThrowableKT-89981Building an Objective-C framework fails with single-field full value classes in the APIKT-87626@ObjCEnuminterpreted as open enum in SwiftKT-88153[ObjCExport] AA: documentation specifying annotation is not attached to receiverKT-87852[ObjCExport] AA: Replace name mangling of special method familiesKT-86199Scalability problems with PackageFragmentProviderImplKT-87738Kotlin/Native: hide companion blocks and extensions from ObjC exportNative. Platforms
KT-78078Remove armv7k(watchosArm32) targetNative. Runtime
KT-88156Kotlin/Native: reduce number of runtime modulesKT-88954[Native] Add -Wno-unknown-attributes to build of the runtimeNative. Runtime. Memory
KT-87963Kotlin/Native: review atomics usage in GlobalData.cppNative. Swift Export
New Features
KT-80632Swift export: symbol not found for cinterop protocolKT-87802Swift Export: cross-language subtyping pt.2KT-72556Export top-level extension functions and properties from "main" package as Swift extensionsKT-87574Swift Export: unify error/exception throwing in sync & asynchronous bridges in cross-language inheritanceKT-84191[Swift Export] export KDocKT-87556Kotlin/Native hide companion blocks and extensions from Swift ExportFixes
KT-88599[Swift Export. Documentation] Flow collection cancellation isn't awaitedKT-86791[Swift Export] Beta versionKT-89728Swift Export: Prohibit exporting objc-imported protocol conformances on kontlin typesKT-88370[Swift Export] Extension property on generic class with type param fails to compileKT-88277Swift Export [Inheritance]: function override with lambda parameter is ignoredKT-88259Swift Export [Inheritance]: toString/hashCode/equals cause EXC_BAD_ACCESS on Swift subclass of an exported Kotlin classKT-88256Swift Export: constructor of a Kotlin subclass with renamed params causes 'error: argument labels for initializer do not match'KT-89159[Swift export] val to var property override is unreadable: "ambiguous use" on the subclass, base value returned via the superclassKT-89839[Swift Export] there could be more than one incoming cinteropKT-89842[Swift Export] extensions of Unavailable type results on conflictsKT-89701Swift Export: sealed-type switch references a subtype nested in an internal classKT-89702Swift Export: reverse bridge calls a member named init without backticksKT-90024[Swift Export] improve compilation performance of Swift ExportKT-89647Native: failing test with state checker onKT-88251Swift Export cross-language inheritance example cannot instantiate KotlinBaseKT-89064Swift Export: StackOverflowError for an exported function with an F-bounded type parameterKT-86403Swift Export: Lean TypeInfo generation for swift inheritorsKT-87947Swift Export fails when inheriting Kotlin abstract classKT-88042Swift Export [Inheritance]: Kotlin can't call an interface method on a Swift subclass that inherits the interface (ClassCastException)KT-88584Swift Export: context parameter is dropped from export when declared in a flattened package: missing argument for parameter #1 in callKT-89067[Swift Export] F-bounded type parameter on a class generates a bridge that does not compileKT-89025[Swift Export] generic type param with generic upper bound fails to compileKT-88999Swift export: leaf case of sealedType() is unreachable when the implementing class is not exportedKT-86510[Swift Export. Tests] Exporting full API surface of kotlinx.coroutines causes runtime crashesKT-87875[Swift Export] Reverse bridges don't work with overloadsKT-88386[Swift Export] SwiftExportConfig.errorTypeStrategy with SpecialType generates incompilable codeKT-88809[Swift Export] intersection override with final implementation fails to compileKT-88740[Swift Export] declaration with internal OptIn fails to compileKT-88669[Swift Export] abstract class with multiple interfaces with same declaration fails to compileKT-87398Swift Export: issues with updating a user projectKT-88739[Swift Export] function returning MutableList fails to exportKT-87457Swift Export: NSInvalidArgumentException in _Kotlin_SwiftExport_wrapIntoExistential when Compose renders first iOS frameKT-88330KotlinExistential has no _createClassWrapperForExternalRCRefKT-88723[Swift Export] Support factory fun name based on suffixKT-88682Swift Export: can't export enum class implementing a sealed interfaceKT-88495[Swift Export] KDoc support: text after the@seeidentifier is droppedKT-88378[Swift Export] Special characters in interface namesKT-88474[Swift Export] Typealias for inner interface is internalKT-88473[Swift Export] Can't implement sealedType function for leaf interfaceKT-88368[Swift Export] OptIn receiver extension in interface fails to compileKT-87697[Swift Export] conflicting ObjC marker namesKT-87391[Swift Export] object returned from a function as an interface should be castable to a last public class, if that class conforms to that said interfaceKT-88224[Swift Export]@escapingis emitted on a variadic closure parameter, which Swift rejectsKT-87791[Swift Export] OptIn interface member with default implementation fails to compileKT-88019Swift Export: parameter names in top level functions are not escapedKT-88171[Swift Export] enable KDoc exportKT-87874[Swift Export] Generic start project param in closure fails to compileKT-87798[Swift Export] generic sealed interface fails to compileKT-87808[Swift Export] Nested generic fails to compileKT-87236[Swift Export] interface member with extension receiver fails to compileKT-85545[Swift Export] functional typealias with unavailable typeKT-85544[Swift Export] property with hidden setter isn't exportedTools. BCV
KT-85950Add support of "com.android.kotlin.multiplatform.library" plugin [ABI validation]KT-87551Bring kotlin.test API back after migrating to JUnit5Tools. Build Tools API
New Features
KT-87086Add Build Tools API entry point for Analysis API based TypeScript generationKT-84401BTA: implement Kotlin/JS incremental compilation supportKT-88018K2 Multiplatform incremental compilation of common code targeting JVM across multiple modulesFixes
KT-88776Remove deprecated JvmSnapshotBasedIncrementalCompilationConfiguration.MONOTONOUS_INCREMENTAL_COMPILE_SET_EXPANSIONKT-86169[BTA]applyArgumentStringssilently drops typed arguments and suppresses typed validation when used on the same builderKT-85464BTA: promote restricted arguments to ERRORKT-83937Promote shrunk-classpath-snapshot configuration deprecation to errorKT-89513Introduce the JPS-only BTA API surface for client-managed incremental JVM compilationKT-89615Support daemon mode in the JPS-only BTA API surface for client-managed incremental JVM compilationKT-91193BTA classloader cache evicts classloaders that are in useKT-87525Add metrics for JVM metadata operations in Incremental CompilationKT-88756BTA: Forward compatibility issue with newly added default Enum values in compiler argumentsKT-87848Guard JVM incremental metadata plumbing behind KMP metadata-on-classpath supportKT-89804Protect build-tools-api-jps compatibility with an API dumpKT-88763Default classpath metadata to the common sources IC propertyKT-88381Argument-parsing warnings are lost when compiling via Build Tools APIKT-84229Build reports missing memory metrics and incorrect in-process strategy indicators with BTAKT-89673Use Path instead of String for file paths in the JPS BTA tracker APIKT-87522Separate enableUnsafeOptimizationsForMultiplatform for js and jvmKT-88835Wasm klib incremental compilation via daemon ignores configuration inputsKT-88299JS and Wasm klib compilation and linking operations silently ignore the IR_OUTPUT_DIR and X_INCLUDE compiler argumentsKT-89050LOOKUP_TRACKER is not propagated to JS/Wasm incremental compilationKT-88298Dropped JS/Wasm compiler arguments are still present in the public BTAKT-88491WasmLinkingOperation and WasmKlibCompilationOperation do not check option availability for the compiler version in set()KT-88838JsKlibCompilationOperation.shouldCompileIncrementally() error message mentions the JVM config typeKT-88478JsLinkingOperationImpl uses Options(JsKlibCompilationOperation::class) instead of JsLinkingOperation::classKT-88684WasmLinkingOperation cannot target wasm-wasi: no Wasm target option available in linking argumentsKT-88777Remove deprecated JvmSnapshotBasedIncrementalCompilationConfiguration.UNSAFE_INCREMENTAL_COMPILATION_FOR_MULTIPLATFORMKT-85791Remove compatibility wrapper for BTA IMPL 2.4.0 with lower versionsKT-88348MessageCollector in IncrementalCompilerRunner drops diagnostics IDsKT-87743MakeKotlinCoreEnvironment.disposeApplicationEnvironment()unnecessary for K2 BTA compilationKT-87822Clean up obsolete disk-based common metadata code after switching to IC-cache JVM metadataKT-87792[BTA] Handle removed arguments in BTA testsKT-87654[BTA] KotlinMetadataKlibCompilationOperation can silently produce a non-klib (legacy metadata) artifactKT-87653[BTA] Metadata operation reports a JVM-specific message for the restricted -d argumentKT-87597[BTA] KotlinCompilationProcessFailedException causes LinkageErrorTools. CLI
New Features
KT-87671Disallow using of any lifecycle version greater than KotlinVersion.CURRENTPerformance Improvements
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 readFixes
KT-88174Show error when running the compiler on JDK < 17KT-73967JDK 25: "IllegalArgumentException: 25-ea" with EA buildsKT-89356Check that CLI arguments configuring already-deprecated/removed language features are deprecated/removed themselvesKT-89211Show warning when running the compiler on JDK < 17KT-88475IncrementalCompilationComponents instances are not being called anymoreKT-89727EXPECT_ACTUAL_IR_MISMATCHwhen usingseparateCompilation=trueKT-89800KMP Separate Compilation: Single-JVM-target commonTest cannot reference jvmMain with separate compilationKT-75990Deprecate all K1-related compiler flags and modesKT-89094Rich Errors: Create LFKT-88548False positive "Member overrides different '@Throws' filter" when a nativeMain class overrides a commonMain member carrying the same@ThrowsfilterKT-86383Use a language feature for new inline variables schemeKT-87493kotlinc.bat crashes with ClassNotFoundException when installed to a path with spaces on ReFS (dev drive)KT-88222kotlinc/kotlin bash scripts fail to handle spaces in KOTLIN_HOME path, producing %20-encoded classpath entries on macOS/LinuxKT-87373Warn on the use of thekotlinexecutable and recommendkotlinrKT-88026large arithmetic expression causes java.lang.NoClassDefFoundError instead of stackoverflowKT-85591RemoveXklib-normalize-absolute-pathcompiler argumentKT-86626Add Compiler Argument for Context-bound Callable ReferencesKT-87826Remove -Xcontext-receivers compiler argumentKT-68175Remove CLIConfigurationKeys.MESSAGE_COLLECTOR_KEYKT-80348Expose 'XXLanguage' compiler argument as a normal argumentKT-76498Implement JSON dumper for performance statsTools. Compiler Plugin API
KT-68878AA: LLFirIdePredicateBasedProvider can return declarations from dependant modulesKT-46917Dependencies of native compiler plugins are not resolvedKT-86900FirSamResolver ignores plugin-generated abstract members when performing SAM conversion on fun interfaceTools. Compiler Plugins
New Features
KT-87731AtomicFU + companion block: gracefully handle delegated companion propertiesKT-87978AtomicFU: support companion blocks and extensions for K/NKT-87984AtomicFU: support companion blocks and extensions for JS targetKT-76529Support lombok.fieldDefaults.defaultPrivate in Lombok pluginKT-87683Support functions and constructors with@Builderon Kotlin classesKT-87682Support for@Singularannotation with@Builderon Kotlin classesKT-88270Support for@Singularwith@Builderand Guava collections on Kotlin classesKT-87886Support for@Builder.Defaultannotations with@Builder` on Kotlin classesKT-87685Support generics with@Builderon Kotlin classesKT-87686Implement minimal viable functionality with@Builderon Kotlin classesFixes
KT-87563Lombok: StackOverflow with@SuperBuilderand cyclic inheritance hierarchyKT-91488Lombok: Kotlin use of one sibling@SuperBuilderleaf's builder() makes the other leaf's inherited parent-builder setters unresolvedKT-90666Lombok: disable@Builderannotation in Kotlin code due to many issuesKT-90086Lombok: ClassCastException during supertype generation for EqualsAndHashCode with inheritanceKT-83329Lombok. The case where the default builder is hidden as an internal and an auxiliary one is created doesn't work from kotlinKT-88124DataFrame: failing test when removing workaround in FIR2IRKT-88729Lombok: flagUsage does not report erros/warnings for constructor-related annotations used in KotlinKT-88659Lombok: RuntimeException when NoArgsContructor/Builder are applied to a class with non-property parameter in a primary constructorKT-88707Lombok: FileAnalysisException when creating an instance of an inner class with NoArgsConstructorKT-89169Lombok: constructor annotations on a Java inner class produce an uncallable constructorKT-89162Lombok:@Builderon a method generates nothing in the IDE because the annotation is read off unresolved FIRKT-89152Lombok: use kotlin.test assertions in the plugin's test data instead of the hand-rolled assertEqualsKT-89133Lombok: no navigation from a generated@Buildermember to the property it is generated fromKT-86915Support for multiple annotations on the same classKT-86652Lombok: introduce NO_NOARG_CONSTRUCTOR_IN_SUPERCLASS for@NoArgsConstructorKT-88276REDECLARATION conflicts with the existing nested 'Companion'KT-89412Add kotlin-atomicfu-compiler-plugin to .zip compiler distributionKT-71791[AFU plugin] Improve illegal use cases handlingKT-88814Lombok: InstantiationError when using Builder with abstract or sealed classKT-88891Lombok: Builder annotation generates setters for properties declared in a class body that do not workKT-89040Lombok: no diagnostic and no codegen when@Builderapplied to top-level functionsKT-89027Lombok:@Builder(access = AccessLevel.PRIVATE) in Kotlin produces unusable builder classKT-88852Lombok: RuntimeException if Builder is applied to an inner classKT-89024Lombok: ClassFormatError when loading class annotated with@Builder(builderMethodName="")KT-88848Lombok: AssertionError when applying Builder annotation to a local classKT-89218Lombok: no diagnostic when@Builder.Default or@Singularis applied to a body-declared property of a Kotlin classKT-89185Lombok: toBuilder() silently drops a builder field with no property to read, where Lombok reports an errorKT-88941Lombok: KotlinIllegalArgumentExceptionWithAttachments in the IDE when@NoArgsConstructoror@Builderis applied to a Kotlin classKT-89753Lombok: StackOverflowError when a Java class uses its own nested annotation on a memberKT-83273Lombok. The inner builder class is unavailable in kotlinKT-88904Lombok: Builder annotation generates invalid IR for generics with type-parametrized upper boundKT-89084Lombok: lombok.singular.useGuava=true is not working for Kotlin collectionsKT-89045Lombok: some java.util.* collections supported in Java as@Singulartargets are not supported in KotlinKT-89117Lombok: NoSuchMethodError when using Java class annotated with Builder and Singular in Kotlin and with lombok.singular.useGuava=trueKT-79199Add K/N FIR dump tests to atomicfu compiler pluginKT-89970Parcelize assigns fields of a value class after super() in Valhalla modeKT-89971no-arg plugin silently generates zero-argument constructors for value classesKT-89972no-arg reports a redundant superclass error on inner classes it already rejectsKT-89973all-open makes value classes open, causing "Value class cannot be open" errorsKT-89189@EqualsAndHashCodeon a Kotlin class must generate canEqualKT-88705Lombok: RuntimeException when compiling NoArgsConstructor applied to a value classKT-88636Lombok: Fields starting with $ are not excluded from generated equals/hashCodeKT-88824Lombok: NoSuchMethodError when applying Builder to enum classKT-89371CONFLICTING_JVM_DECLARATIONS when using both@NoArgsConstructorand@BuilderKT-87277AtomicFU: allow only private atomic companion extension and member propertiesKT-88336Change Lombok diagnostics severity from warning to strong warningKT-84119Power-assert: "StringIndexOutOfBoundsException: Range [0, -2) out of bounds for length 884" in a scratch fileKT-88179Power-assert: IrGenerationExtensionException (StringIndexOutOfBoundsException) when assert() wraps a context-parameter function callKT-88656Lombok: EqualsAndHashCode in Kotlin does not use deep hash code for arraysKT-88511Lombok: VerifyError if@EqualsAndHashCodeapplied to a subclass of a class with final equals or hashCodeKT-88532Lombok@EqualsAndHashCode: hashCode() returns same value for null field and default value (e.g. Int=0), causing hash collision between non-equal instancesKT-88653Lombok: EqualsAndHashCode.callSuper diagnostics is present in Java, but is missing in KotlinKT-88655Lombok: missing diagnostics for Exlude annotations used with@EqualsAndHashCode(onlyExplicitlyIncluded = true)KT-54072[K2] [JAVA_TYPE_MISMATCH] error in case sortedSetOf() is used as a param of a filed annotated with @ Singular which type is raw SortedSetKT-87871ANNOTATION_HAS_NO_EFFECT reported for interfaces/annotation class with@Log, although the log property is generatedKT-88288@Logon a companion object does nothing when lombok.log.fieldIsStatic=falseKT-88367IrGenerationExtensionException when@ToStringis applied to a class with a property in a companion blockKT-88701Lombok: ClassFormatError when using interface with NoArgsContructor annotation appliedKT-88505Lombok:@Buildergenerates a setter for a Java static fieldKT-88936Lombok: Builder applied to an object generates unreachable codeKT-88507Lombok: VerifyError in runtime if@EqualsAndHashCodewas applied to a enum classKT-88644Lombok: Tolerate unsupported warning is not visible enough when combined with EqualsAndHashCodeKT-88620Lombok: of/exclude attributes of@EqualsAndHashCode/@ToStringannotation reported as unsupported, but they do affect the codegenKT-88614Lombok: EqualsAndHashCode applied to object/companion object does not report ANNOTATION_HAS_NO_EFFECTKT-88322AddlinuxArm32Hfp()to Power Assert runtimeKT-88803PowerAssert: Create tests for diagram without runtimeKT-88419Array values are not displayed well with@ToStringKT-88420There is no diagnostic when@ToStringoverrides a final methodKT-88410If the first class member doesn't have a backing field when@ToStringhas an extra commaKT-88248LOG_PROPERTY_ALREADY_EXISTS isn't reported for member propertyKT-88407ANNOTATION_HAS_NO_EFFECT isn't reported when@Log/@Stringis applied to an expressionKT-88333ANNOTATION_CLASS_MEMBER is reported for annotation with@ToStringKT-88337Handle Lombok AccessLevel.PROTECTED, MODULE, and PACKAGE correctly for Kotlin classesKT-88203@Logwith AccessLevel.PROTECTED is accessible from the public scopeKT-86651Lombok: "Constructor without parameters is already defined" checker for@NoArgConstructorKT-87912AtomicFU: compiler plugin can't handle loop function invocation inside an inline function initializing top-level propertyKT-87784AFU: compiler plugin does not support inline extension properties on atomicsKT-87612Test Federation: Review domain Compiler Plugins Smoke & Contract testsKT-75877PowerAssert: don't display value for anonymous objectKT-87889Use Lombok implementation to singularize wordsKT-85180AtomicFU/Native IR validation errorKT-67440Atomicfu-compiler-plugin: incorrect initialization order of delegated propertiesKT-67839Atomicfu plugin: support transformation of minusAssign/plusAssign operatorsTools. Compiler plugins. Compose
Fixes
KT-91414Compose compiler, Kotlin/Native: lambda SAM-converted to@Composablefun interface gets no restart group; recomposition fails with "No nodes can be emitted before calling skipAndEndGroup"KT-91591Compose: NoSuchFieldError when a cross-module@JvmFieldproperty of@Composablelambda type is accessed more than once (field arity grows by 2 per access)KT-89310Drop K1 descriptor usage fromAbstractComposeLowering.sourceKeyKT-89311Drop K1 descriptor usage fromClassStabilityTransformer.visitClassKT-90466Compose compiler, Kotlin/Native: IrLinkageError "No function found for symbol" for lambda SAM-converted to@Composablefun interface from another moduleKT-84055Reference to lambda in lambda in function 'TextField' can not be evaluatedKT-89957Compose infers full value classes with uncertain properties as stableKT-89961Compose crashes with StackOverflowError on a recursive full value classKT-89958Compose ignores type arguments of generic value classes when inferring stabilityKT-89968Compose infers abstract and sealed value classes as unstable instead of uncertainKT-89969Compose ignores the stability configuration file for value classesKT-89681[WEB] Expression uses unlinked type parameter symbolKT-88069[Compose Compiler] NoClassDefFoundError when invoking@Composablelambda directlyKT-88028Compose compiler: IndexOutOfBoundsException in ComposableTargetAnnotationsTransformer when overriding a@Composablefunction with default parameter in another moduleKT-82808[CMP] IrLinkageError: Abstract function is not implementedTools. Compiler plugins. Serialization
New Features
KT-66462Report a warning when the serializable class has a private companionKT-55738Report a diagnostic when@Serializableclass already has a serializer() function in companion with signature that matches plugin-generatedKT-69488Serialization: plugin should print a diagnostic or a warning when misusing@Serializable(with=...)KT-81042Warn when Proto* annotations are applied to properties of inappropriate typeFixes
KT-91224Kx Serialization: Regression in support of Java enums with Serializable annotationKT-71680Report a warning when@Serializablepublic class has private serializerKT-73207Report a compiler error when@Serializable(with) is applied and number of generic parameters does not matchKT-69067K2 + Serialization: provide a warning when plugin-related annotations are typealiasedKT-59088KJS / Serialization: Report a compiler error if@Serializableclass contains a property with dynamic typeKT-89643Fix Protobuf tag reuse for full value classesKT-89275Kotlin/Wasm: Invalid Wasm is emitted for a@Serializablegeneric class with a class upper boundKT-88540Warn when@SerialInfo/@InheritableSerialInfo-annotated annotation has inapplicable targetKT-75702Support array content equality when deciding whether to encode a default value in kotlinx.serialization pluginTools. Daemon
KT-83117Daemon mode: Clear jar caches at the end of the buildTools. Gradle
New Features
KT-81782Enable CRI by defaultKT-78215Gradle: enable Kotlin/JS compilation and linking through BTA by defaultKT-78217Gradle: enable Kotlin/Wasm compilation and linking through BTA by defaultKT-80510Gradle: enable metadata compilation through BTA by defaultKT-74808Add Gradle DSL option for enabling unused return value checkerKT-88601Warn user on non-publishable targets when Kotlin Archive is enabledKT-88529Support compatibility mode with direct dependencies on platform components in KGPKT-88526Initial implementation of Kotlin Archive in KGPPerformance Improvements
KT-88084Each build leaves a strong reference to an instance of BuildMetricsServiceKT-69613Remove usages ofgetCanonicalPathandgetCanonicalFilein plugins codeFixes
KT-88290Make kotlin.user.home support relative pathsKT-91772KGP drops an explicitly set compiler argument when it equals the KGP default but not the default of a newer compilerVersionKT-84114Bump the minimal supported Gradle version to 8.14.xKT-87989Deprecate the legacy Swift Export DSL and provide migration diagnosticsKT-87990Add consumer dependency overrides to Swift Export Xcode integrationKT-88594Compatibility with Gradle 9.8 releaseKT-61225Turn "Kotlin Gradle plugin was loaded multiple times" warnings into errorKT-85434Gradle: drop support for non-BTA JVM compiler execution modeKT-87910Implement Kotlin Archive (.kar) publication formatKT-88619Bump minimal supported AGP version to 8.8.2KT-88622Unconditionally deprecate direct integration with AGPKT-87971Make multiple loaded plugins detection compatible with project isolationKT-71968Setting customkotlin.project.persistent.dircausesNoSuchFileException: ./custom-cache-dir/sessions/kotlin-compiler-12437393244673679493.saliveKT-69336Support kotlin.project.persistent.dir that is outside of rootProjectKT-87558Gradle: Remove property for disabling usage of non-packed klibsKT-88785Gradle: Remove kotlin.internal.classpathSnapshot.parseInlinedLocalClassesKT-82426Improve publishing with cross compilationKT-90997Preserve behaviour of deprecated kotlin.internal.incremental.enableUnsafeOptimizationsForMultiplatform in 2.5.0KT-90672Gradle: "configureEach(Action) on task set cannot be executed in the current context" when KotlinCompile is created lazily with AGP built-in KotlinKT-85935KGP / Android: sourceSets deprecation not shown in DSL block form inside KotlinAndroidProjectExtensionKT-91330Groovy DSL: kotlin { sourceSets { main {} } } in Android project fails with misleading "Could not find method main()"KT-91331Deprecated Kotlin sourceSets in Android extension: block form doesn't report the error in Groovy DSL or in suppressed Kotlin DSLKT-88380Raise deprecation level to error for Kotlin source sets in Android extensionKT-87986Publish Swift Export metadataKT-88602Add Gradle 9.8 support in integration testsKT-88604Switch Gradle functional tests to Gradle 9.8 runtimeKT-73968KotlinDependencyManagement tries to mutate configuration after it was resolvedKT-88583Kapt may unexpectedly load conflicting dependencies from the Gradle runtime classpathKT-88609Cleanup declarative Gradle prototype from ecosystem pluginKT-89340Adopt sources.jars publication to Kotlin ArchiveKT-89323Consume Swift Export metadata for project dependenciesKT-87987Consume Swift Export metadata for published external dependenciesKT-90111Add missing generated files to 2.5.0 branchKT-88850Add explicit xcodeIntegration and opt-in task wiringKT-88853Derive Swift Export module export modes from KMP api and implementation dependenciesKT-87509Stop using Gradle Problems API severity fieldKT-77241KGP: Remove CleanData infrastructureKT-87993Compile against Gradle API 9.7KT-87994Run Gradle integration tests against Gradle 9.7KT-87995Run Gradle functional tests using Gradle runtime 9.7KT-87840Isolated projects: "Project ... cannot access 'Project.extensions' functionality on another project" when configuring JS/Wasm targets (NodeJsPlugin/D8Plugin)KT-88192KMP Separate Compilation: separate compilation mode is incompatible with configuration cacheKT-87726Run functional tests against the Gradle 9.6 releaseKT-87256KotlincOutputParser fails to parse compilation errors under Gradle when task path prefixes are enabled (Kotlin 2.4.20-Beta1)KT-87508Wire buildNeeded/buildDependent only for Gradle <9.5.0KT-86835[KGP] Migrate KotlinSecondaryVariantsDataSharing to kotlinx-serializationKT-86833[KGP] Migrate Apple/Swift-export/Native Gson usages to kotlinx-serialization; introduce FileSerializerKT-87724Fix failing SwiftPM Import TestsKT-87970Extend test coverage for multiple loaded plugins detectionKT-87679Bump version of file-leak-detector used in KGP ITsKT-87911Report an actionable diagnostic when .kar files reach compilation classpaths in Kotlin 2.4.20KT-86435ReplaceFile.ensureParentDirsCreated()with NIO PathcreateDirectories()KT-87729Update KGP test to use jvm-test-suiteKT-86040Run tests against the Gradle 9.6.0 releaseTools. Gradle. JS
New Features
KT-88882Reimplement Node.js provisioning in KGPKT-88868Rework declaration and collection of npm dependencies in KGPKT-87087Integrate Analysis API based TypeScript generation into the KMP Gradle plugin as a separate taskKT-86731Integrate new Kotlin JS Browser Test pipeline with IDEA in debug modeKT-89230Expose allBrowserTestRunners as gradle named domain collectionKT-88856KGP/JS/Playwright: Provide Gradle test filtering arguments in KotlinJsTestsLocationKT-86715Add ability to configure Dev-server URL (or specification) to run browser tests fromFixes
KT-89052Add a cacheability annotation to EsmBundleKotlinJsTestsKT-90285KGP rejects 'valid' package namesKT-90770Analysis API-based TypeScript declarations ignore the module name set on the link task for UMD and plain modulesKT-90626Analysis API-based TypeScript declarations ignore the JS file name set on the link taskKT-86708Add FUS events for new JS test APIKT-90489Rich TypeScript declarations ignore Long-as-BigInt enabled by target es2020KT-89605Use nodeJsToolchain in all tasks for nodeExecutableKT-90126FUS: configurationTimeMetrics fails with IllegalArgumentException for an unsupported browser test runnerKT-90286NodeJsExec ignores a custom executableKT-89797KJS/KGP: Playwright tests fail to update after kotlin code changesKT-90366-Xdts-use-unknown-instead-any is ignored by the new GenerateTypeScriptDefinitions taskKT-90519KGP and BTA do not preserve -XXLanguage settings for Analysis API-based TypeScript declaration generationKT-90533-Xes-long-as-bigint=true is ignored by Analysis API-based TypeScript declaration generationKT-90491GenerateTypeScriptDefinitions task generates UMD declarations for ES module when target is es2015 or higher and module kind is not setKT-84724NPM dependency versions do not invalidate KotlinWebpack task cache key in kotlin multiplatform projectKT-85440Remove kotlin-js pluginKT-89214Share JS/WasmJS npm dependencies through Gradle ConfigurationsKT-89404wasmJs browser test returns timeout and cant load mocha.js and mocha.css because they are missing in the ems bundleKT-89508JS/Wasm: Remove deprecated properties in NodeJsRootExtensionKT-86683Use npm-installed mocha.js instead HTTP loaded variant in JS Browser test pipelineKT-89734Update JS tooling dependenciesKT-88592Reporter option 'alsoWithHtml' has no effect. Because custom reporterOptions.Base was provided. In node-js testsKT-88431Playwright JS tests don't run on Linux/ARMKT-90303Rename nodeJs toolchain gradle propertiesKT-90287Node.js toolchain fails without an explicit installation directoryKT-90087JS_TEST_BROWSER_TYPE FUS metric is not reported when using the default Chromium browser in Playwright testsKT-88718[TechDebt] Add dependsOnNpmTooling to simplify task dependency on NPM toolingKT-84740Promote deprecation of NpmApiExecution#resolveRootProject to ERRORKT-88709Deprecate NpmDependencyExtensionKT-87502Validate customBrowserExecutable path in new JS test DSLKT-87641Having a few same js targets with configured tests leads to Cannot add task 'kotlinInstallPlaywrightBrowsers'KT-87643jsBrowserTest for project with js and wasmJs fails on /build/kotlinJsTest/dist' which doesn't existKT-86112Promote KotlinJsIrTarget constructor deprecation from WARN to ERRORKT-85179Remove NodeJsExec.createKT-88597Fix failing Gradle Integration Tests Gradle Kotlin JS with Browser tests LinuxKT-88504Gradle Integration Tests Gradle Kotlin JS with Browser tests (Windows) fails after Gradle 9.7 BumpKT-86797Failed JS tests don't report errors in the outputKT-86799Report browser environment to IJKT-87501Throw an error if new JS test DSL is used with WasmKT-87600Playwright install on multiple subprojects cause Gradle build to failKT-53687Don't trigger npm and yarn related tasks if it not relevant for assembleTools. Gradle. Multiplatform
Performance Improvements
KT-87790Kotlin 2.4.0 increases Gradle sync timesFixes
KT-86666Metadata (aka e.g. commonMain) unique_name does not include group prefixKT-87513Error deprecation for watchosArm32 targetKT-88590NoSuchElementException thrown with new KMP compilation schemeKT-89848KAR: jsNpmAggregated fails on mixed legacy and archived artifacts in the classpathKT-90544Gradle, Multiplatform: Publication iteration misses JS, Wasm and Native targets since 2.5.0-Beta2 (after Kotlin Archive publishing changes)KT-89906KAR: incomplete publication may fail on metadata compilation if a cinterop usedKT-60724Legacy dependencies are not reported if used in testsKT-89900Disable partial resolution diagnostic in large projectsKT-89563KGP doesn't work with the new xcproj Xcode project formatKT-84736SPM import: the package name for the included build is just an underscoreKT-86611Deprecate hidden kotlin.mpp.freeCompilerArgsForSourceSet propertyKT-80897Drop implementationMetadataConfigurationName from KGPKT-89878Raise deprecation to error for 'withJava()' APIKT-89413Multiplatform: jvmTest reports omit JUnit TestReporter.publishEntry entries on Gradle 9.4+KT-89863KAR: npm dependencies are missed in publicationKT-89777KAR: publication reports potential issues in pom fileKT-89871KAR: source.jar always includes shared source sets sourcesKT-89849KAR: WasmJs compilation fails on mixed legacy and archived artifacts in the classpathKT-89817KAR library is ignored in framework exported dependencyKT-89815KAR: consumer's cinterop compilation reports used unsupported archiveKT-88890Stabilize MppIdeDependencyResolutionIT IDE resolution strict modeKT-88839IDE reports NoSuchMethodException: org.jetbrains.kotlin.gradle.plugin.sources.DefaultLanguageSettingsBuilder.getEnabledLanguageFeatures()KT-82417KMP Separate Compilation: missing fragment dependencies for custom darwin source set that mirrors appleMainKT-87946Flaky JSBrowserTestsITTools. Gradle. Native
New Features
KT-84852Wire linkage package integration check with Swift Export's embedAndSignFixes
KT-87873Deprecation warning on AndroidNative gradle DSLKT-89622cleanSwiftImportFingerprintArtifacts fails to parse a fingerprint left by 2.4.20 after upgrading to 2.5.0-Beta1KT-88813Delete native tasks API deprecated as ERRORKT-89480Changing swift export visibility doesn't affect incremental buildsKT-89265K/N: Gradle 9.8 reports "Using the enum type KotlinNativeBundleArtifactsTypes as an attribute value type has been deprecated"KT-87632Native test: empty unnamed Output tab appears in Test Results when test process exits abnormallyKT-76147Gradle Configuration Cache: 'compile*KotlinMetadata' caused invocation of 'Task.project' in 'commonizeCInterop'KT-87576Simplify SwiftPM lock file sync by moving logic from sync tasks into fetch taskKT-87535Make SwiftPM fingerprint file structuredKT-53477Native: Gradle plugin doesn't add compiler plugin transitive dependencies to compiler plugin classpathKT-85468Don't fail IDE import if the SwiftPM import pipeline has failed somewhereKT-87394Publishing fails with FileNotFoundException: iosArm64 KLIB missing when compilation skipped due to cross-compilation disabled in a project dependencyKT-88008SwiftPM-import Gradle IT fails after watchosArm32 removal and platform-condition changeKT-27683Most Kotlin compiler plugins cannot be used in Gradle MPP with Kotlin/NativeKT-87630Lenient import doesn't work with awaits introduced in KT-85933Tools. Gradle. Swift Export
New Features
KT-78747Swift export for SPMKT-89803Swift package generation for Swift ExportKT-85687[Swift Export - Gradle] Add exposed and hidden dependency visibility overridesFixes
KT-89720Add Swift Export metadata artifact to .kar archiveKT-89805Wire settings from the new Swift Export DSL into the Swift Export runKT-90738swiftPackageIntegration: Release build fails to link exported package (undefined symbol KotlinRuntimeSupport_linkAnchor)KT-89812Run Swift Export once per target and declare the outputs of its tasksKT-90132Swift Export: Swift package export fails when Apple targets export different modulesKT-89680[Swift Export] Types from a transitive spm dependency are not exportedKT-88987Add an example to the documentation for the export.swift.rootPackage DSL propertyKT-89289Move SwiftExportConfigurationCompat into the internal packageKT-89379Remove the ExperimentalExportDsl opt-in annotationKT-89354embedSwiftExportForXcode can never be a no-opKT-89495Changes in published metadata not picked up by Swift Export taskKT-89393Report SwiftExportUnsupportedMetadataSchemaVersion when processing metadata from KotlinProjectSharedDataProviderKT-90020Swift Export: OutOfMemoryError in SwiftExportAction because of default 512 MB worker heapKT-90365Swift Export: rename Gradle properties to follow the naming conventionsKT-88672Gracefully fail embedSwiftExport task if the minimal target version is less then iOS 18KT-89059Introduce a bridging layer between the legacy SwiftExportExtension and the new ExportExtension.SwiftExportConfigurationKT-88523Introduce the new export extension with a swift configuration blockTools. Gradle. Wasm
New Features
KT-87082Support new playwright-based browser test DSL in wasmjsKT-87136K/Wasm: Add possibility to have a distribution without webpackFixes
KT-89832K/Wasm: deprecate node for wasmWasiKT-87562K/Wasm: removeExperimentalWasmDslfrom wasm-js target-related declarations KGPKT-89269KGP/JS/Playwright: "Failed to load Kotlin WASM JS tests entry point TypeError"KT-89510Wasm: Promote declarations deprecationsKT-89813K/Wasm: Update wasmtime to 49.0.1KT-89856K/Wasm: update Binaryen to 133KT-84258K/Wasm: Remove deprecated properties in BinaryenExecKT-89521wasmJsTestBundleAsEsm fails instead of being skipped when there are no test sourcesKT-88115"Your lockfile needs to be updated": Outdated bundled yarn.lock breaks kotlinWasmToolingSetup with --frozen-lockfileKT-88566K/Wasm: Webpack configuration generated after user defined chunks from the webpack.config.d directoryKT-88285WasmJS tooling version overrides are ignoredKT-86879K/Wasm: Update wasmtime to 47.0.0KT-87831NPM install on Windows fails if project path contains bracesKT-87565Add validation for kotlin.wasm.compilationMode Gradle property valuesTools. Gradle. Xcode
KT-90520integrateLinkagePackage failing for json based xcproj with an existing spm dependencyTools. Incremental Compile
Performance Improvements
KT-90019IC: Classpath snapshot shrinking builds the reverse-impact resolver even when no classpath classes are referencedKT-89471Optimize allocations in ClasspathEntrySnapshotter.snapshotFixes
KT-88801Incremental compilation fails for a serializable class hierarchy in multiple files with private propertiesKT-86121Incremental compilation fails for a serializable sealed inheritance chain in multiple filesKT-89336IC: inferred interface member return type is not recompiled when its underlying type changesKT-89342Investigate potential performance improvement for IC classpath snapshottingKT-88762Make kotlin.internal.jvm.enableUnsafeOptimizationsForMultiplatform a user-facing Gradle propertyKT-91153Incremental compilation failed: The following FqNames can't be derived from DirtyData.dirtyLookupSymbolsKT-88997IC of common targeting JVM: IC crash on actualizing expect fake overrides when project contains intermediate jvm source-setKT-89300K2 KMP JVM IC: Interface delegation causes IllegalStateExceptionKT-89044K2 KMP JVM IC: Actual typealias overload change ignored by incremental compilationKT-89912Kotlin 2.4.20: JS/Wasm IC fails removing FIR-generated hint, then falls back to a full rebuildKT-88539Incremental JS Klib compilation tests fail with LV 2.4+KT-62686K2: Common module sees platform declarations in case of MPP project incremental compilationTools. JPS
KT-88702Support incremental dumb-mode compiler execution with providing tracker data output for JPSKT-89569Remove copied APIs from JPSKT-89464Compilation fails with NoClassDefFoundError in UtilsKtTools. Kapt
KT-71883Kapt: generate Java sources directly instead of using JCTreeKT-88608KAPT: Do not generate JTree in direct modeKT-89349Investigate failures in KAPT tests if one enables+CLBasedAnnotationResolutionKT-70784Consider using LightTree instead of PSI in K2 KaptKT-88559KAPT: 'com.sun.tools.java.util.Context' class can't be found ('tools.jar' is absent in the plugin classpath) on 28-ea JDKKT-85195KAPT: IntroducedAt is not supported in KAPTKT-80882K2 KAPT: Dagger fails to process code annotated with@ComposableKT-87855Kapt: direct generation produces HEX for Float valuesKT-70804Cleanup kapt implementations for K1 and K2Tools. Maven
KT-90004Maven and Gradle tests fail after scripting runtime migrationKT-83374CRI: it is not clear that CRI generation requires IC being enabled in MavenTools. Performance benchmarks
KT-87324K/N: Add runtime benchmarks for release cachesTools. REPL
KT-89459Remove-Xreploption fromkotlincKT-87432Implement JSR-223 variant on K2 compiler that compiles out of processKT-89749K2 REPL: UNRESOLVED_REFERENCE to a previous snippet's class in a function with an implicit return typeKT-89750K2 REPL: UNINITIALIZED_VARIABLE is not reported for snippet propertiesKT-89747K2 REPL: a snippet failing after resolution stays in the history and consumes a snippet numberKT-89748K2 REPL tests: in-process and Analysis API REPL runners keep failed snippets in the historyKT-86291Drop GenericReplCompilerTools. Scripts
Performance Improvements
KT-90299JSR-223: post-GC heap growth per evaluated snippet is ~6x higher in 2.5.20-dev-1225 than in 2.4.10 and ~3x higher than in 2.5.0-Beta1Fixes
KT-89220JSR-223: generic Java bindings break all subsequenteval()callsKT-74354Implement (and use) expected exceptions processing in K2 REPL testsKT-89752JSR-223 (K2): the engine's snippet number (repl.currentSnippetNo) is ignored by the compilerKT-90022The completion doesn't work in main-kts scripts in IJKT-42101Scripts:@file:Import() in kotlin-main-kts uses a stale cacheKT-89627K2: a script processed before its definition's package sources causes 'Unresolved reference' in that packageKT-90244Scripting, JSR-223: Each new ScriptEngine or ScriptContext retains its K2 compiler environment, leading to OutOfMemoryErrorKT-90298JSR-223: ENGINE_SCOPE/GLOBAL_SCOPE bindings are lost after the ScriptContext is replacedKT-88453VirtualFileScriptSource.textleaks an unclosed file stream — script source file handle held until GC, blocks file deletion on WindowsKT-89247Kotlin Script: NoClassDefFoundError on 2nd execution with transitive dependency from imported scriptKT-87958K2 scripting: FirPropertyImpl transformation crash when using class from@file:Import-ed script in 2.4.0+KT-87047Scripts: ClassNotFoundException for 'kotlin.script.experimental.dependencies.Repository' when compiling .main.kts with '-Xuse-fir-lt=false'KT-87041Scripting: classpath extraction fails to extract stdlib from kotlincKT-76424Dependencies in main.kts not working with 2.1.20Tools. Statistics (FUS)
KT-88758Enable FUS for all Gradle IT testsKT-88686Add FUS metrics to the new Swift Export DSLConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate CLI.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.