Skip to content

Kotlin 1.9.20-Beta

Pre-release
Pre-release
Compare
Choose a tag to compare
@KotlinBuild KotlinBuild released this 11 Sep 13:39
· 275 commits to 1.9.20 since this release
c64f614

Changelog

Analysis API

New Features

  • KT-58834 Analysis API: Add source shadowing feature to resolve extensions

Performance Improvements

  • KT-57515 LL FIR: Performance bottleneck in CompositeModificationTracker.getModificationCount
  • KT-59266 K2: optimize FirElementBuilder.getOrBuildFir for elements outside body
  • KT-59454 K2: drop resolve from org.jetbrains.kotlin.analysis.api.fir.components.KtFirVisibilityChecker#collectContainingDeclarations
  • KT-59453 K2: completion regression from org.jetbrains.kotlin.analysis.api.fir.components.KtFirVisibilityChecker#collectContainingDeclarations
  • KT-59189 Analysis API: KtFirKDocReference.resolveToSymbols is slow
  • KT-58125 K2: LL FIR: KtToFirMapping.getElement is slow for KtUserTypes due to on-air resolution of types

Fixes

  • KT-60940 K2: Analysis API: Reference shortener incorrectly handles types in vararg parameters declarations
  • KT-61026 K2 Scripts: FirLazyExpression should be calculated before accessing from on-air resolve
  • KT-61009 K2 Scripts: KtFirExpressionTypeProvider: Expected FirResolvedTypeRef with ConeKotlinType but was FirImplicitTypeRefImplWithoutSource
  • KT-60357 K2 IDE. Reified types parameters are not resolved in a function body
  • KT-60954 K2: Analysis API: Reference shortener does not work correctly with variable assignments
  • KT-60317 K2 IDE. IAE "This method will only work on compiled declarations, but this declaration is not compiled" on invoking Find Usages for enum method in library
  • KT-60728 K2: proper support for scripts in LL FIR transformers
  • KT-60706 K2 IDE: FirJvmTypeMapper is not found for kotlin.kotlin-stdlib-common
  • KT-57743 K2 IDE: StackOverflowError from LLFirSessionCache for simple JPS project with cyclic dependencies
  • KT-60552 K2: merge StateKeeper and lazy body calculator for ANNOTATIONS_ARGUMENTS_MAPPING transformer
  • KT-60641 Analysis API: Scope for class org.jetbrains.kotlin.fir.types.impl.ConeClassLikeTypeImpl not found exception when stdlib is missing
  • KT-60586 K2: forbid analyze from write action
  • KT-60638 K2: Expected FirResolvedTypeRef with ConeKotlinType but was FirImplicitTypeRefImplWithoutSource
  • KT-54846 Analysis API: add isExpect/isActual to KtSymbol
  • KT-59077 KtFirExpressionTypeProvider behaviour for KtSimpleNameReferences in function calls
  • KT-60448 FirLazyResolveContractViolationException: lazyResolveToPhase(COMPILER_REQUIRED_ANNOTATIONS) cannot be called from a transformer with a phase COMPILER_REQUIRED_ANNOTATIONS from AllOpen plugin
  • KT-59342 K2 IDE. FirLazyResolveContractViolationException: lazyResolveToPhase(TYPES) cannot be called from a transformer with a phase TYPES
  • KT-59687 K2: Implement proper body update for in-block modifications
  • KT-60488 Analysis API: forbid providing custom KtLifetimeToken for every analyze call
  • KT-59329 Resolve Extensions reference resolution breaks Find Usages
  • KT-60295 K2: move checkIsResolved for annotations from LLFirAnnotationArgumentsLazyResolver to LLFirTypeLazyResolver
  • KT-59758 K2: Expected is FirResolvedTypeRef, but was FirImplicitTypeRefImplWithoutSource from ReturnTypeCalculatorWithJump
  • KT-60377 K2 IDE: This method will only work on compiled declarations, but this declaration is not compiled
  • KT-59685 K2: rewrite on-air resolution
  • KT-59159 K2 IDE: declaration is not found exception
  • KT-59297 K2: exception from body resolve leads to corrupted state and broken analysis
  • KT-60132 K2: properties and functions without a name should be re-analyzable as well
  • KT-59199 K2 IDE: PSI changes which do not cause OOB modifications can be unseen from the FIR elements
  • KT-59667 Analysis API: PsiInvalidElementAccessException from JavaClassifierTypeImpl.substitutor
  • KT-59705 KotlinExceptionWithAttachments: No fir element was found for getter
  • KT-59697 AA standalone: JRT module paths are not properly populated in Windows
  • KT-59505 K2: implicit type lazy resolution doesn't work for delegated declaration from other module
  • KT-56426 K2 IDE: Typealised functional types cannot be rendered
  • KT-59598 AA: stackoverflow while simplifying a type with a recursive type parameter
  • KT-58497 K2: Expected FirResolvedTypeRef for initializer type of FirPropertyImpl(Source) but FirImplicitTypeRefImplWithoutSource found
  • KT-59511 AA standalone mode creates Application Environment for tests
  • KT-58161 Analysis API: Make methods in KtCallResolverMixIn more distinctive based on their receiver/return type
  • KT-59093 Do not throw exception on KtCall resolution, KtCallElement.resolveCall should return null on unknown cases
  • KT-59240 K2: FirLazyResolveContractViolationException: lazyResolveToPhase(IMPORTS) cannot be called from a transformer with a phase IMPORTS from superTypes
  • KT-59243 K2: FirLazyResolveContractViolationException: lazyResolveToPhase(IMPORTS) cannot be called from a transformer with a phase IMPORTS from permits types
  • KT-58194 K2: Low Level API: use smart pointers to store references to PSI from FIR declarations for JavaElement
  • KT-59133 K2: java.lang.IllegalStateException: Fir is not initialized for FirRegularClassSymbol
  • KT-58174 K2: LL FIR: Invalid type reference for T & Any type
  • KT-52615 LL FIR: build RAW FIR only by stubs
  • KT-55053 K2: Exception "lateinit property diagnostic has not been initialized" in FirBuilder
  • KT-58580 K2: LL FIR: Declarations provided by resolve extensions from a dependency module are not visible through LLFirCombinedKotlinSymbolProvider
  • KT-58992 Analysis API: move org.jetbrains.kotlin.analysis.api.fir.utils.addImportToFile out of Analysis API
  • KT-58727 K2: AA FIR: implicit type in delegated function treated as error
  • KT-58653 K2: Analysis API: add functions for KtScope members access by name
  • KT-57559 K2 IDE: KotlinExceptionWithAttachments: Modules are inconsistent on intellij project
  • KT-58262 Analysis API: Declarations from Analysis API Resolve Extensions are not seen from completion
  • KT-57455 LL FIR: Combine AbstractFirDeserializedSymbolProviders in session dependencies (optimization)
  • KT-57207 LL FIR: Combine JavaSymbolProviders in session dependencies (optimization)
  • KT-58546 K2: LL FIR: support name collision in a designation path
  • KT-58495 K2: Lazy calculation is redundant
  • KT-58500 K2: null cannot be cast to non-null type org.jetbrains.kotlin.fir.FirPureAbstractElement
  • KT-58493 K2: Expected FirResolvedTypeRef for default value type of FirValueParameterImpl(Source) but FirUserTypeRefImpl found
  • KT-58496 K2: Expected FirNamedReference, FirErrorNamedReference or FirFromMissingDependenciesNamedReference, but FirExplicitSuperReference found
  • KT-58499 K2: FirLazyBlock should be calculated before accessing
  • KT-58491 K2: Expected FirResolvedTypeRef or FirImplicitTypeRef for return type of FirDefaultPropertyBackingField(Synthetic) but FirUserTypeRefImpl found
  • KT-56550 LL FIR: implement parallel resolve for non-jumping phases
  • KT-58503 Analysis API: KtFirNamedClassOrObjectSymbol.visibility/modality do not trigger STATUS resolve
  • KT-57623 K2 IDE: ConcurrentModificationException from getSuperConeTypes
  • KT-57966 K2: Analysis API: Reference Shortener does not work correctly when called on entire file
  • KT-58083 K2: LL FIR: implement FakeOverrideTypeCalculator

Android

  • KT-27170 Android lint tasks fails in Gradle with MPP dependency

Backend. Native. Debug

  • KT-61131 Virtual functions trampolines have invalid debug info

Backend. Wasm

Fixes

  • KT-58746 K/Wasm: Make Arrays' constructors with size and lambda inline (similar to other implementations)
  • KT-58993 [K/Wasm] Fix w3c declarations with lambda parameters
  • KT-60496 Compose-web Wasm crashes on remember { null } calls
  • KT-60113 K/Wasm: illegal cast when using 1.9.20-dev
  • KT-60835 K/Wasm: fix compatibility with Node.js 20.*
  • KT-59722 K/Wasm: Support new encoding with flags for br_on_cast and br_on_cast_fail instructions
  • KT-59713 K/Wasm: Implement enumEntries intrinsic
  • KT-59082 WASM: NullPointerException caused by companion with String type constants
  • KT-58941 WASM Hang with extension delegate inside a Class
  • KT-59294 WASM: localStorage Cannot read properties of undefined (reading 'length')
  • KT-60200 K/Wasm: generate types without supertypes properly
  • KT-52178 IR dump doesn't seem to work for Kotlin/WASM phases
  • KT-59556 Wasm: critical dependency when using with webpack
  • KT-58681 K/Wasm: division remainder has a wrong sign
  • KT-56711 Wasm: IllegalStateException caused by dynamic type

Compiler

New Features

  • KT-58545 KMP: prohibit implicit actualization via Java
  • KT-58536 KMP: prohibit expect tailrec / expect external
  • KT-58554 KMP: restrict expect opt-in annotations and actual typealiases to annotations with special meaning
  • KT-58551 KMP: check all annotation from expect declaration are present on actual
  • KT-59764 Make a frontend checker that reports cast to forward declaration as unchecked
  • KT-60528 Updates for JVM/IR backend of kotlin-atomicfu-compiler-plugin
  • KT-59558 Add support for creating annotation instances with type parameters
  • KT-52367 Devirtualization algorithm improvement
  • KT-58652 Native: Implement frontend checkers for HiddenFromObjC on classes

Performance Improvements

  • KT-59600 K2: CFG: do not add edges to nested classes and functions
  • KT-57860 K/N: Functions with default arguments of value/inline class types have poor performance due to value class boxing

Fixes

  • KT-60650 KMP: prohibit problematic actual typealiases
  • KT-58757 K2: False-positive NON_PUBLIC_CALL_FROM_PUBLIC_INLINE error in case an inline fun is protected and is a part of an internal abstract class declaration
  • KT-59736 kotlinx.serialization + K2 + JS: e: java.lang.IllegalStateException: Symbol for kotlinx.serialization.json.internal/FormatLanguage.|-547215418288530576[1] is unbound
  • KT-59071 K2/MPP: internal declarations from common module are invisible in dependent source sets if there is more that one intermediate source set between
  • KT-61270 Enabling Kotlin/Native caching causes 65K warnings from dsymutil when building Compose iOS app
  • KT-57845 K2. Unresolved reference error on calling Java references with fully qualified name
  • KT-59408 K2: Missing MULTIPLE_DEFAULTS_INHERITED_FROM_SUPERTYPES
  • KT-32275 Embedding kotlin-compiler-embeddable into a Java EE App leads to CDI related deployment error
  • KT-57329 K/N IR linkage issues due to the combination of static caches w/ Lazy IR & Compose compiler plugin
  • KT-60531 K2/JS: Report diagnostics before running FIR2IR
  • KT-59665 ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS isn't reported for actual typealias and fake-override actualization
  • KT-59465 K2: build kotlinx-datetime
  • KT-61461 K2: Kotlin native metadata compilation breaks when stdlib is present in -libraries
  • KT-59247 Kapt+JVM_IR: AssertionError on anonymous object in enum super constructor call
  • KT-58576 K2: IR actualization problems in MPP scenario
  • KT-61442 K2: Consider stricter filtering on implicit integer coercion
  • KT-61441 K2: Wrong overload is chosen with ImplicitIntegerCoercion enabled
  • KT-59466 K2: build kotlinx-benchmark
  • KT-61159 K2: OVERLOAD_RESOLUTION_AMBIGUITY between private top-level property in same file and top-level property in different module
  • KT-56077 K2: build kotlinx.atomicfu
  • KT-57963 K2: MPP: Annotation calls should be actualized
  • KT-61418 k2: ImplicitIntegerCoercion to List leads to "IllegalStateException: Cannot find cached type parameter by FIR symbol"
  • KT-58884 K2: NotAMockException for mock testing with lambda expression with Maven
  • KT-58893 K2: MockitoException for mock testing with lambda expression with Gradle
  • KT-59483 K2: Build a Native app
  • KT-47702 Support call of Java annotation constructor without specifying a default value
  • KT-60862 Kotlin Scripting: NoSuchMethodError for ExternalDependenciesResolver.addRepository
  • KT-58229 K2/MPP/JVM: compiler codegen crash on call of inherited generic class's method with actual-typealias as value parameter
  • KT-55196 K2: False-negative CONST_VAL_WITH_NON_CONST_INITIALIZER on boolean .not() call
  • KT-57738 K2: unresolved class fields and methods in kotlin scripts
  • KT-59449 K2: Diagnostic messages contain debugging-style rendered FIR
  • KT-59849 K2: IllegalArgumentException: List has more than one element
  • KT-57553 Implement deprecation for open val with backing field and deferred initialization in K1
  • KT-60830 KMP, K2: expect actual annotation IR checker doesn't unwrap actual typealiases to annotations
  • KT-57230 Support Kotlin/Wasm in the K2 platform
  • KT-61029 K2: Duplicates when processing direct overridden callables
  • KT-61095 K2: "IAE: source must not be null" from FirMultipleDefaultsInheritedFromSupertypesChecker
  • KT-59409 K2: Missing DEFAULT_VALUE_NOT_ALLOWED_IN_OVERRIDE
  • KT-60800 [atomicfu-K/N]: turn on the tests for the K/N part of the compiler plugin
  • KT-59058 Companion object is not initialized on class constructor call
  • KT-61163 Default params on actual check and inheritance by delegation compilation error
  • KT-61017 K2: intermediate expect/actual class results in expected class has no actual declaration in module
  • KT-60181 K2: "NotImplementedError: An operation is not implemented" with Spring
  • KT-59472 K2: build Reaktive
  • KT-60902 visibility vs upper bound expect actual matching conflict
  • KT-59378 K2: Missing FINITE_BOUNDS_VIOLATION and FINITE_BOUNDS_VIOLATION_IN_JAVA
  • KT-54786 MPP: "LazyTypeAliasDescriptor cannot be cast to class org.jetbrains.kotlin.descriptors.ClassDescriptor" caused by expected non-constant function argument on iOS if class is type aliased
  • KT-59753 K2: NotImplementedError when using annotation with vararg with default value from other module
  • KT-61145 False negative NOTHING_TO_OVERRIDE when context receivers don't match
  • KT-60883 K2: Fix testRequireKotlinCompilerVersion in LV 2.0 branch
  • KT-61054 K2: "IAE: source must not be null" with -no-reflect on calling property getter with implicit invoke
  • KT-57126 [KLIB Reproducibility] Manifest is written using os-dependent line separators
  • KT-59218 K2: return types of calls to @PolymorphicSignature methods inside try-expressions don't resolve to void when required
  • KT-60002 K2: Missing UNSUPPORTED_SUSPEND_TEST
  • KT-61011 K2 Scripts: FirRecursiveProblemChecker: Expected FirResolvedTypeRef with ConeKotlinType but was FirImplicitTypeRefImplWithoutSource
  • KT-58906 K2. "Backend Internal error: Exception during IR lowering" instead of CANNOT_INFER_PARAMETER_TYPE error when parameter type missing in lambda
  • KT-60587 K2: Implement warning NO_REFLECTION_IN_CLASS_PATH
  • KT-59490 K2: build km-shop
  • KT-59355 K2: Allow to actual classifier have wider visibility than the corresponding expect class
  • KT-56179 [K2/N] interop_objc_tests/multipleInheritanceClash.kt test failed
  • KT-59969 K2: Disappeared UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL
  • KT-59411 K2: Missing ENUM_CLASS_CONSTRUCTOR_CALL
  • KT-59410 K2: Missing TYPEALIAS_EXPANDED_TO_MALFORMED_TYPE
  • KT-59393 K2: Missing TYPE_ARGUMENTS_FOR_OUTER_CLASS_WHEN_NESTED_REFERENCED
  • KT-59382 K2: Missing PROTECTED_CONSTRUCTOR_NOT_IN_SUPER_CALL
  • KT-59901 K2: Disappeared API_NOT_AVAILABLE
  • KT-60779 K2: missing INTERFACE_CANT_CALL_DEFAULT_METHOD_VIA_SUPER
  • KT-60824 K2 IDE: FirSyntheticCallGenerator: IAE: List has more than one element
  • KT-60144 JVM IR inline: backport primitive boxing in class literals
  • KT-55955 K2: callable references are not properly resolved when in conflict with expected type
  • KT-55373 K2. Unresolved reference error for type mismatch with callable references
  • KT-59249 K2: Empty varargs are not serialized to KLIB
  • KT-59110 K2. "NotImplementedError: An operation is not implemented." error on incorrect @Target annotation
  • KT-57780 K2: Calling a constructor through a deprecated typealias doesn't report a deprecation
  • KT-59586 K2: support JVM backend diagnostics in light tree mode
  • KT-55221 K2: No error reported for self-referencing local function with inferred return type
  • KT-59376 K2: Missing TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM_ERROR
  • KT-60474 K2: False negative type mismatch for array literal with wrong numeric literal
  • KT-59610 K2: Calls to annotations with default values are serialized differently in K1 and K2
  • KT-60139 K2: Refactor handling of implicitly actual declarations (annotation & inline class constructors and property of inline class)
  • KT-60793 K2: IllegalStateException: Expected FirResolvedTypeRef with ConeKotlinType but was FirJavaTypeRef
  • KT-60427 K2 @Metadata annotations contain outerType/outerTypeId information for non-inner nested classes
  • KT-60137 K2: Quite complicated redeclaration error description is displayed for data classes
  • KT-60639 K2: IllegalStateException: Unsupported compile-time value GET_CLASS type=kotlin.reflect.KClass<p1.A>
  • KT-59476 K2: build ClashForAndroid
  • KT-56888 CFA: Valid green in K1 -> red in K2. catch_end -> finally -> after_try
  • KT-59165 K2: Prohibit class literals with empty left-hand side
  • KT-60573 K2: False positive/negative CONFLICTING_OVERLOADS for main functions
  • KT-60124 K2: Conflicting declarations on extension properties with different upper-bounded type parameter
  • KT-60259 K2: Reflection target is missing on adapted function refernces
  • KT-59036 InstantiationError when instantiating annotation with a parameter type as a default parameter of another annotation
  • KT-59711 K/N: Implement enumEntries intrinsic
  • KT-60154 K2: Expected some types error
  • KT-58139 K2/MPP/metadata: compiler FIR serialization crash on complex expression as annotation argument
  • KT-59485 K2: build Anki-Android
  • KT-59415 K2: Missing DATA_CLASS_OVERRIDE_DEFAULT_VALUES_ERROR
  • KT-59710 K/JVM: Implement enumEntries intrinsic
  • KT-57984 K2/JS fails with IdSignature clash for inherited expect/actual function
  • KT-59398 K2: Missing NOT_SUPPORTED_INLINE_PARAMETER_IN_INLINE_PARAMETER_DEFAULT_VALUE
  • KT-60645 Native: dynamic caches are broken on Linux
  • KT-50221 FIR: handle enhanced/flexible nullability inside withNullability properly
  • KT-59281 JVM IR inline: incorrect type of created array
  • KT-59507 JVM IR inline: invocation of arrayOfNulls by function reference results in exception
  • KT-58359 Allow volatile intrinsics on inline function constant arguments
  • KT-60598 K2: add OptIn checkers for command line arguments
  • KT-58360 Intrinsics for atomic update of array elements
  • KT-59392 K2: Missing NAME_CONTAINS_ILLEGAL_CHARS
  • KT-59391 K2: Missing JS_BUILTIN_NAME_CLASH
  • KT-60580 K2: Not supported: class org.jetbrains.kotlin.fir.types.ConeFlexibleType
  • KT-59830 K2. False negative [FINAL_SUPERTYPE] on extending final class through type alias
  • KT-59644 K2: the companion object in an expect class requires to be explicitly defined for compileNativeMainKotlinMetadata
  • KT-59640 K2: expect constructor requires calling this or super but didn't use to
  • KT-59404 K2: Missing EXPECT_TYPE_IN_WHEN_WITHOUT_ELSE
  • KT-58778 JVM IR inline: add fake variables for debugger
  • KT-55072 K2: False positive "suspension point is inside a critical section"
  • KT-58883 K2: False negative type mismatch for generic annotation in collection literal
  • KT-59581 K2: Initializer type mismatch: expected Array<KClass<*>>, actual Array<KClass> in annotation parameter default value using array literal
  • KT-60387 K2: IDE K2: "org.jetbrains.kotlin.fir.expressions.impl.FirArgumentListImpl cannot be cast to class org.jetbrains.kotlin.fir.expressions.impl.FirResolvedArgumentList"
  • KT-59548 FIR2IR: inconsistent generation of dispatch receiver for object methods
  • KT-59416 K2: Missing EXTERNAL_INTERFACE_AS_REIFIED_TYPE_ARGUMENT
  • KT-59417 K2: Missing CALL_FROM_UMD_MUST_BE_JS_MODULE_AND_JS_NON_MODULE
  • KT-59381 K2: Missing CALL_TO_JS_NON_MODULE_WITH_MODULE_SYSTEM
  • KT-59377 K2: Missing CALL_TO_JS_MODULE_WITHOUT_MODULE_SYSTEM
  • KT-59384 K2: Missing DYNAMIC_NOT_ALLOWED
  • KT-59406 K2: Missing PROPERTY_DELEGATION_BY_DYNAMIC
  • KT-60247 K2: order of data class generated member differs in IR
  • KT-57223 K2: false-negative INAPPLICABLE_JVM_NAME on non-final properties outside interfaces
  • KT-60183 K2: INAPPLICABLE_JVM_NAME on private methods with all-open plugin
  • KT-57240 K2 MPP: Actualization doesn't work for flexible types
  • KT-60436 K2: investigate possible FirJavaTypeRef equals parameter in FirDataFlowAnalyzer.hasEqualsOverride
  • KT-60299 K2: when a typealias to Unit is returned, an explicit return is now required
  • KT-58005 K2: Unsupported compile-time value BLOCK for Repeatable annotations
  • KT-60223 K2: Wrong import with import alias
  • KT-54854 K2. Unresolved reference for not imported declaration when it is already imported as an import alias is absent in K2
  • KT-59708 K2: "Property must be initialized or be abstract" occurs due to constructors order
  • KT-58483 K2. -Xmulti-platform flag isn't working
  • KT-53490 FIR: Refactor augmented assignment resolving code - fix lhs-related problems and combine similar code in array and assign operator handling
  • KT-59673 K2: incorrect error message
  • KT-58578 K2: Commonize expect-actual logic between FIR and IR actualizer
  • KT-54989 FIR2IR: fragile code in postfix op detection
  • KT-59464 K2: Investigate cases of implicit type refs in Fir2IrImplicitCastInserter
  • KT-53898 K2: False negative VAL_REASSIGNMENT on member vals
  • KT-55933 K2: False negative Overload resolution ambiguity for call functions with named parameters if one of params is vararg
  • KT-56460 K2: Do not re-run DiagnosticCollectorVisitor from FirInlineDeclarationChecker.checkChildrenWithCustomVisitor
  • KT-57641 K2: "java.lang.NoSuchFieldException: INSTANCE" in kotlin-reflect for KClass.objectInstance on an anonymous object
  • KT-59299 [K2] ISE in IrBindablePublicSymbolBase.bind on equals function from companion of serializable class
  • KT-58844 Incorrect type mismatch error: "actual type is kotlin/Int but kotlin/Int was expected"
  • KT-59413 K2: Missing VALUE_CLASS_CANNOT_HAVE_CONTEXT_RECEIVERS
  • KT-56173 FIR: IrGenerationExtensions cannot see default values from expect declarations
  • KT-59858 Kotlin Native: Compilation failed: Sequence contains more than one matching element, org.jetbrains.kotlin.backend.konan.lower.FunctionReferenceLowering$FunctionReferenceBuilder.buildClass(FunctionReferenceLowering.kt:644)
  • KT-58539 [K2] Ir actualization fails to match expect/actual declarations that use custom function types
  • KT-59775 'toString()' on Object returns different result with concatenation
  • KT-59737 K2: Actual class 'actual class FastArrayList : AbstractMutableList, MutableListEx, RandomAccess' has no corresponding members for expected class members because of different parameter names in Java
  • KT-59613 K2: Unhandled intrinsic in ExpressionCodegen exception in for expect function with default value in parameter
  • KT-59216 K2. Unhelpful unresolved reference when inheriting from interface with constructor call (K1 reports NO_CONSTRUCTOR instead)
  • KT-57377 K2/MPP: internal declarations from common module are inivisible for intermediate modules during metadata compilation
  • KT-59362 K2/MPP: .toByte() conversion for const val causes SourceCodeAnalysisException: java.lang.NullPointerException: null
  • KT-51670 FIR: questionable behavior for deprecated String constructors
  • KT-35314 StackOverflowError with nested try-finally and function with contracts
  • KT-53460 False positive smartcast warning in if block after if block
  • KT-40851 False MUST_BE_INITIALIZED_OR_BE_ABSTRACT error for a property which is initialised in the init block
  • KT-59695 K2: false negative NON_PUBLIC_CALL_FROM_PUBLIC_INLINE
  • KT-42995 False negative "VAL_REASSIGNMENT" in try/catch block with initialization in scope function
  • KT-41198 False positive β€œVariable must be initialized” with assignment in scope function and safe call
  • KT-47494 CFG SOE on incorrect code
  • KT-47892 False negative BREAK_OR_CONTINUE_OUTSIDE_A_LOOP with continue in init block inside for
  • KT-58901 K2. Value parameter default values are not checked for type mismatch
  • KT-48115 Member functions with type parameter and contract don't produce smartcasts
  • KT-47567 'Val cannot be reassigned' error not reported in unreachable code
  • KT-59541 K2: Type checking has run into a recursive problem on code that was compiling with Language 1.9
  • KT-58943 K2: Incorrect with K1 priority of "invokeExtension + implicit receiver" candidate
  • KT-37375 [FIR] Incorrect invoke resolution
  • KT-59286 JVM IR inline: local property not found
  • KT-58823 K2: Android app crashes right after start: java.lang.NoSuchMethodError: No virtual method findViewById(I)Landroid/view/View
  • KT-57754 K2: No public signature built for the synthesized delegate field
  • KT-58533 K2: "Not enough information to infer type variable T" for generic call in throw expression
  • KT-34846 FIR Java: enhance type parameter bounds properly
  • KT-52043 FIR: FirValueParameter with SubstitutionOverride does not reference the original FIR declaration
  • KT-59291 JVM IR inline: unexpected result of apiVersionIsAtLeast invocation
  • KT-59038 [K2] IllegalStateException in mixed Java/Kotlin inheritance
  • KT-59487 K2: build KSP-playground
  • KT-59489 K2: builld spring-petclinic-kotlin
  • KT-58908 K2. Internal error "kotlin.UninitializedPropertyAccessException: lateinit property firType has not been initialized" on incomplete is
  • KT-56755 K2: Investigate failures related to line numbers with LT compilation enabled
  • KT-56139 K2: consider adding source element for implicit receivers
  • KT-57489 K2: Incorrectly generated line numbers in companion object access inside class
  • KT-58947 Run all existing codegen box tests with kapt stub generation
  • KT-58827 K2 reports ACTUAL_WITHOUT_EXPECT on the whole class
  • KT-54917 K2: ILT leak from a completed generic call
  • KT-56187 K2: type parameter's upper bound is ignored in callable references
  • KT-56186 K2: lack of type arguments in type constructor is ignored in callable references
  • KT-59356 K2: Restrict rules for matching of expect supertypes for actual class
  • KT-57217 K2: NoSuchMethodError on toChar call on java inheritor of java.lang.Number
  • KT-58356 K2: StackOverflowError with OptIn and Deprecated, while compiling Kotlin project
  • KT-57954 K2. Auto-generated "entries" member of enum class has higher priority than user-declared companion object with same name when language version is set to 2.0
  • KT-59508 K2: Make sure that warnings-severity nullability annotations are not perceived as reasons for nullability errors
  • KT-53820 FIR: mismatching error message for invisible reference/member
  • KT-58641 K2: PublishedApi has no effect when internal fun used in the test source set
  • KT-59461 K2: Erroneous null check when returning not-null typealias to nullable type
  • KT-58980 K2: Import of java field from companion's base breaks the compiler
  • KT-59140 K2: "Symbol public final static field is invisible" caused by java static field called in kotlin code
  • KT-59501 Escape analysis constructs arrays of negative size
  • KT-59452 apiVersionIsAtLeast calls in body of stdlib inline function may be evaluated on compile-time
  • KT-53967 [PL] Classifiers: Turning interface from fun to non-fun + adding member function causes Kotlin/JS fail: IAE: "Sequence contains more than one matching element"
  • KT-59346 Not working breakpoints on not initialized variables
  • KT-55993 Wrong current pointer: strange behaviour of debugger or compiler when two IFs and an uninitialized variable between them
  • KT-58335 K2: Exposed typealias from implementation dependency produces type mismatch in dependent module
  • KT-58719 K2: false-positive INVISIBLE_REFERENCE error in case of importing an internal abstract class
  • KT-57694 K2: False positive [NOTHING_TO_OVERRIDE] for a class overriding 'sort' method from the List collection
  • KT-58460 K2. return without argument became allowed for functions with return type Any
  • KT-49249 Incorrect nullability inferred for Throwable
  • KT-57429 K2: Fix computing a mangled name for members of a generic class that reference the class's type parameters in their signature
  • KT-57566 K2: Fix name mangling for functions that have dynamic type in their signature
  • KT-57818 K2: Fix FirMangleComputer to not include the "special" package name into mangled names of property accessors on non-JVM platforms
  • KT-57777 K2: Fix computing a mangled name for the synthesized entries property getter of an enum class
  • KT-57433 K2: Fix computing a mangled name for top-level functions and properties
  • KT-58553 k2: Annotation type arguments are lost in FIR2IR
  • KT-58184 K2: False negative INVISIBLE_MEMBER on destructuring declaration
  • KT-58637 K2: False negative ABSTRACT_MEMBER_NOT_IMPLEMENTED on Entry of Enum with abstract member declaration
  • KT-54952 JvmSerializationBindings does not work with K2
  • KT-54844 FIR/Analysis API: create stubs for equals/hashCode/toString for data classes in FIR
  • KT-58555 K2: Generic property reference inside delegation misses type argument
  • KT-57648 FIR: move deprecation calculation on COMPILER_REQUIRED_ANNOTATIONS phase
  • KT-57049 K2 generates duplicates of symbols/declarations
  • KT-55723 K2: deprecations for enum entries are not resolved on the TYPES phase
  • KT-59033 Doesn’t support vararg parameter in annotation instantiation with empty arguments
  • KT-58780 JVM IR inline: local property delegation is not working for K2
  • KT-58779 JVM IR inline: correctly process special inlined block in value class lowering
  • KT-58720 Generate full InnerClass attributes for the standard library
  • KT-58215 K2: JVM IR produces line numbers for delegation bridges that are not marked with ACC_BRIDGE
  • KT-42696 JVM IR generates line numbers for all bridges leading to extra steps in the debugger
  • KT-57228 K2: annotations for interface member properties implemented by delegation are copied
  • KT-57216 K2: non-trivial enum declaration does not have ACC_FINAL in the bytecode
  • KT-55866 K2: Constant as parameter of @JvmName: BE: "Unsupported compile-time value CALL private final fun "
  • KT-58717 Object on the left-hand side of callable reference is not initialized if KCallable.name optimization is used
  • KT-59211 Kapt+JVM_IR: AssertionError on delegating to anonymous object
  • KT-57251 K2: weird error message when trying to instantiate an expect class without explicit constructor
  • KT-58623 Language version 2.0: compiling into common, Native does not report "Protected function call from public-API inline function is prohibited", while JVM, JS do
  • KT-55945 NoSuchMethodError when calling method with value class parameter on java class inherited from kotlin class
  • KT-58840 K1/K2: false positive EXPOSED_FUNCTION_RETURN_TYPE related to protected lower bound
  • KT-57243 K2: no warning or error reported on expect class in CLI, and JVM backend tries to generate it to a .class file
  • KT-57833 K2 reports NO_ACTUAL_FOR_EXPECT for inherited properties with the same name
  • KT-58153 K2/MPP/JVM&Native: cannot override Any::toString when an expect-supertype has Any::toString override in actual-class
  • KT-58124 K2: FIR2IR compiler crash with MPP (Fir2IrSimpleFunctionSymbol is already bound)
  • KT-57803 K2. "Kotlin: Only the Kotlin standard library is allowed to use the 'kotlin' package" error missing in 2.0
  • KT-57504 [K2/N] Wrong coercion of ILT: 7 to kotlinx.cinterop.COpaquePointer causes Cannot adapt kotlin.Int to kotlinx.cinterop.CPointer during autoboxing
  • KT-57484 K2: false positive OVERLOAD_RESOLUTION_AMBIGUITY with ImplicitIntegerCoercion
  • KT-57971 K1/K2: False positive "Redundant 'suspend' modifier" warning on declaration site when suspend function is also argument
  • KT-56779 Checkers false negative: AbstractMethodError when accessing setter via an interface where the member is defined as var, but it's val in implementation
  • KT-51793 FIR: Investigate property+invoke resolution priorities
  • KT-57003 FIR: missing annotation on parameter of data class' synthetic copy
  • KT-57269 K2: collection stub for sort is not generated for custom List subclasses
  • KT-54748 K2: incomprehensible errors when type parameter has the same name as a class
  • KT-50703 FIR: Improve reporting UPPER_BOUND_VIOLATED for type arguments of typealias constructor calls
  • KT-57622 Fix incorrect metadata for data class generated methods
  • KT-54887 K2: fix behavior of references to value classes equals/hashCode/toString
  • KT-58937 K2: Annotation vararg arguments are incorrectly serialized
  • KT-58621 K2: Private class shadows public function defined in the same package
  • KT-59041 K2. "IllegalStateException: Expected FirResolvedTypeRef with ConeKotlinType but was FirImplicitTypeRefImplWithoutSource " on incorrect collection declaration
  • KT-58665 K2: Optional.of incorrectly accepts nullable String
  • KT-58938 K2. Abstract class can be invoked using member reference :: operator
  • KT-50798 FIR: False negative UPPER_BOUND_VIOLATED_IN_TYPEALIAS_EXPANSION
  • KT-47409 FIR: Investigate inference for equality (==) operator
  • KT-58294 K2 compiler crashes with OOM on deserializing annotation applied to itself with a enum outer/nested parameter
  • KT-58972 K2: Error message of PRIVATE_CLASS_MEMBER_FROM_INLINE doesn't mention class members
  • KT-58989 K2: Forbid suspend operator get/setValue and provideDelegate
  • KT-59177 K2: Report NAMED_ARGUMENTS_NOT_ALLOWED for named parameters in lambdas
  • KT-57028 K2: "NSEE: Sequence contains no element matching the predicate" with stream related Java api
  • KT-58007 K2: Unsupported compile-time value GET_FIELD FIELD PROPERTY_BACKING_FIELD when const value is default for annotation
  • KT-58472 Secondary constructor breaks MUST_BE_INITIALIZED check
  • KT-58902 K2: Calls to overridden method with default parameter are not compiled
  • KT-58549 K2: variable type is infered to non-existing interface
  • KT-58613 K2: ConcurrentModificationException from FirSignatureEnhancement.performFirstRoundOfBoundsResolution
  • KT-55552 K2. False negative TYPE_MISMATCH in implementation via delegation
  • KT-57436 Fix computing mangled names of generic properties from IR-based declaration descriptors
  • KT-57701 Unify selection of inherited callable with default implementation among multiple candidates in JVM, Native & JS backends
  • KT-58444 K2/MPP/metadata: compiler FIR2IR crash on constant with intrinsic initializer from common source set in Native-shared source set
  • KT-57756 K2: Missing syntax errors when light tree parsing is used
  • KT-57435 Fix computing mangled names for functions with context receivers
  • KT-57219 K2: incorrect relative order of normal and use-site-targeted annotations on property getter in the resulting bytecode
  • KT-57955 K2: "ClassCastException: class org.jetbrains.kotlin.ir.declarations.impl.IrExternalPackageFragmentImpl cannot be cast to class org.jetbrains.kotlin.ir.declarations.IrDeclaration" with property delegate
  • KT-57425 K2: False-positive smartcast on property accessed through a property from another module
  • KT-57844 K2. Not relevant errors when accessing Java member which have private overloads with argument type mismatch
  • KT-58584 K2: "UninitializedPropertyAccessException: lateinit property packageFqName has not been initialized"
  • KT-58529 K2: "Extension function type is not allowed as supertypes" compile error
  • KT-58284 K2: False negative ITERATOR_MISSING
  • KT-55078 K2 IDE: Infinite recursion in org.jetbrains.kotlin.fir.java.JavaScopeProvider#findJavaSuperClass
  • KT-58080 K2: False-positive TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM on annotated const val
  • KT-56523 K2 should report MANY_INTERFACES_MEMBER_NOT_IMPLEMENTED
  • KT-58238 Support dumping signatures and mangled names in irText tests
  • KT-58456 K2: Custom function type metadata breaks Compose library compatibility
  • KT-58267 K/N: do not reference hidden Array.content* functions from the compiler
  • KT-54792 Store program order of properties inside @kotlin.Metadata
  • KT-57791 Native: Method returning String? leads to exception: Unexpected receiver type: kotlin.String
  • KT-58437 K2: Do not use descriptors in KonanSymbols
  • KT-57432 K2: Don't create default getters and setters in case when they are not needed
  • KT-46047 FIR: incorrect type of integer literals
  • KT-57487 [K2/N] Stdlib ArraysTest fails with Class found but error nodes are not allowed
  • KT-56951 K2: False negative error on compound assignment for property of type Byte
  • KT-57222 K2: compiler FIR serialization crash on two functions with captured type and object literal
  • KT-58224 K2: deprecation on field is not detected properly
  • KT-55662 K2. Incorrect type mismatch error "inferred type is IOT" instead of "inferred type is Int"
  • KT-55668 K2. 'in' modifier became applicable to star projection
  • KT-57064 K2: hidden internals of dealing with type-aliased primitive types are exposed to user
  • KT-58252 K2: Symbol already bound for backing field during building resulting JS artifact for MPP project
  • KT-56940 K/Wasm: report compiler errors for unsupported external declarations
  • KT-56943 K/Wasm: implement @WasmImport diagnostics
  • KT-55903 K2: False negative CANNOT_CHECK_FOR_ERASED on is-check for type with reified type arguments
  • KT-56944 K/Wasm: implement @JsFun diagnostics
  • KT-58329 K2: False-positive suspend conversion for anonymous functions
  • KT-58028 K2: False-positive TYPE_PARAMETER_IS_NOT_AN_EXPRESSION

IDE

Fixes

  • KT-28611 MPP: Gradle -> IDE: settings provided via compilations DSL are not imported into common modules facets
  • KT-60603 K2: Investigate intellij tests failures in branch 2.0
  • KT-60590 Fix light classes related tests in branch 2.0
  • KT-60530 K2 scripting: exception on .gradle.kts opening
  • KT-60539 K2: "KtInaccessibleLifetimeOwnerAccessException: org.jetbrains.kotlin.analysis.api.lifetime.KtReadActionConfinementLifetimeToken@3ce52fd9 is inaccessible: Using KtLifetimeOwner from previous analysis" at highlighting
  • KT-60341 K2 IDE: "UnsupportedOperationException: Unknown type CapturedType(*)?"
  • KT-60518 K2 IDE. False positive [NON_MEMBER_FUNCTION_NO_BODY] when completing function with Complete current statement
  • KT-60323 K2 IDE. "KotlinExceptionWithAttachments: Unexpected returnTypeRef. Expected is FirResolvedTypeRef, but was FirImplicitTypeRefImpl" exception on contract return type
  • KT-60352 K2 IDE. Support Java Records
  • KT-56503 K2 IDE: FIR tree is incorrect in a case of ProcessCancelledException was thrown during phase execution
  • KT-59843 SLC: KotlinAsJavaSupport.packageExists (via KotlinStaticPackageProvider) said ROOT package doesn't exist if no KtFiles are given
  • KT-59836 Symbol Light Classes: Type parameters from the parent interface aren't copied to DefaultImpls methods
  • KT-59445 Recursion detected on input: JavaAnnotationImpl
  • KT-59533 AA/SLC: anonymous object appears during PsiType conversion, resulting in IllegalArgumentException:KtFirPsiTypeProviderKt.asPsiTypeElement
  • KT-59563 Symbol Light Classes: Incorrect type erasure in $annotations methods for extension properties with generic parameters
  • KT-57567 SLC: missing final modifier on enum (non-synthetic) members
  • KT-59537 SLC: SymbolLightClassForAnonymousObject with null parent
  • KT-59293 Symbol Light Classes: DefaultImpls methods must be static and have an additional $this parameter
  • KT-59325 Symbol Light Classes: Non-existing fields for properties from companion objects
  • KT-57579 SLC: unboxed type argument as method return type
  • KT-54804 Generate synthetic functions for annotations on properties in light classes
  • KT-56200 Kotlin FIR reference resolve exception leaks user code
  • KT-58448 K2 / IDE / SLC: findAttributeValue for attribute w/ default value raises ClassCastException

IDE. Completion

  • KT-60451 K2 IDE: FirDeclaration was not found for class org.jetbrains.kotlin.psi.KtProperty, fir is class org.jetbrains.kotlin.fir.expressions.impl.FirBlockImpl

IDE. Gradle Integration

  • KT-36677 MPP Gradle plugin doesn't respect manually set compiler arg -opt-in
  • KT-58696 MPP + IDEA: tryK2 does not affect LV value of common facets
  • KT-61464 MPP, IDE: Metadata compilation task options are not imported to the corresponding source set
  • KT-53875 Warn users about erroneously adding dependsOn from test to main
  • KT-48554 [Multiplatform Import] Ensure consistency between GradleImportProperties and PropertiesProvider

IDE. Gradle. Script

  • KT-60749 Scripting: default definition as a fallback
  • KT-60171 K2 IDE: scripting freeze on kotlin project build.gradle.kts file
  • KT-60199 K2 scripting: exception on script opening
  • KT-60193 K2 scripts: configuration discovery fails silently from time to time
  • KT-59801 K2 IDE: Adding of an import with a task name to a build script leads to unresolved references
  • KT-60236 K2 scripting: completion fails with exception

IDE. Misc

  • KT-60053 IdeaKotlinBinaryCoordinates doesn't respect capabilities and classifier attributes

IDE. Multiplatform

  • KT-56684 Adopt KMM UI tests to be used with IDEA
  • KT-50952 MPP: Commonized cinterops doesn't attach/detach to source set on configuration changes

IDE. Script

  • KT-60307 K2 IDE. KotlinExceptionWithAttachments in script file
  • KT-60519 Analysis API: scripts are not invalidated on PCE

IDE. Wizards

  • KT-59347 Rename Compose Multiplatform wizard to Compose for Desktop

IR. Interpreter

  • KT-60744 Restore binary compatibility of toIrConst function

IR. Tree

  • KT-59308 Auto-generate the IrFactory interface
  • KT-59772 Restore compatibility of IrFactory#createFunction
  • KT-59771 Restore compatibility of IdSignature.CommonSignature

JS. Tools

  • KT-44838 Kotlin/JS source-map-loader slow performance since 1.4.0

JavaScript

New Features

  • KT-58684 KJS: ES15 classes β€” creating instance by class

Performance Improvements

  • KT-58187 KJS / IR: Huge performance bottleneck while generating sourceMaps (getCannonicalFile)

Fixes

  • KT-61581 KJS: generate separate imports for useEsModules()
  • KT-56737 K2: build Space JS
  • KT-59001 K/JS: Use open-addressing hash map in JS stdlib
  • KT-6168 Ability to generate one JS file for each Kotlin source file
  • KT-60667 K2 / KJS: jsTest fails with "SyntaxError: Unexpected token '}'" on runtime
  • KT-60131 KJS: Interference between @JsExport and final implementation of properties
  • KT-60495 K2: Make JS CliTestGenerated working with K2
  • KT-59712 K/JS: Implement enumEntries intrinsic
  • KT-60202 JsExport.Ignored internal extension still has "JavaScript name () generated for this declaration clashes with another declaration"
  • KT-58857 KJS/IR: js file is not generated when source is stored in /var folder
  • KT-53482 KJS: Inheritance from JS class fails in ES6, because constructor is not called with new
  • KT-58891 K/JS: non-local return in lambda may leave an unreachable JS code after return
  • KT-49077 KJS / IR: Wrong method called when using overloaded methods and class with the same name
  • KT-59718 K/JS: Concatenating a String with a Char can lead to boxing of the Char
  • KT-59717 K/JS: a redundant boxing of a returned Char from an inline function
  • KT-39506 Kotlin/JS browser application using JS IR and React fails in runtime with "TypeError: _this__0._set_name__2 is not a function"
  • KT-59151 K2 / KJS: NullPointerException in Fir2IrClassifierStorage.preCacheBuiltinClasses
  • KT-59335 K/JS ES6 classes: A child constructor, when using parent secondary constructor super call, creates a parent object
  • KT-58797 Optimize the code generated for objects on JS and Wasm backends
  • KT-52339 FIx failing JS tests after bootstrap update
  • KT-46643 KJS / IR: Setter of overridden var of external val is removed
  • KT-55315 IR: can't access the stack property of Throwable
  • KT-59204 Automatically generate NATIVE directive in tests for IR signatures
  • KT-59239 K/JS: Bridge not generated for checking parameter type in generic class override
  • KT-57347 KJS: BE IR Incremental cache invalidation doesn't work after inserting Partial Linkage stub
  • KT-58599 KJS: Adding an override method to open class does not rebuild children JS code
  • KT-58003 K2/MPP/JS: compiler IR serialization crash on multiple calls to inherited expect-function
  • KT-38017 KJS: tests generate invalid code depending on file names
  • KT-25796 KJS: Top-level constructs are put in an incorrect order
  • KT-58396 KJS / IR: "IllegalStateException: Validation failed in file" with Enum.entries and inheritance

KMM Plugin

  • KT-59492 KMM AS plugin for Canary 231 reports error

Klibs

  • KT-54402 Programmatic API to dump public signatures from KLibs
  • KT-58877 [klib tool] add ability to dump klib ir
  • KT-59136 [PL] Lower the default PL engine messages log level down to INFO
  • KT-59486 klib: Serialize mangled names along with signatures
  • KT-60576 Keep supported IR signature versions in manifest

Language Design

  • KT-57614 KMP: consider prohibiting actual typealias when the corresponding expect class has default arguments
  • KT-61573 Mark expect/actual classifiers as experimental
  • KT-22841 Prohibit different member scopes for non-final expect and its actual
  • KT-49175 Inconsistency with extension super-type allowance between suspend / non-suspend function types
  • KT-27750 Reverse reservation of 'yield' as keyword

Libraries

New Features

  • KT-59440 Rework Flags API in kotlinx-metadata-jvm

Fixes

  • KT-56106 Migrate stdlib to current Kotlin Multiplatform Plugin
  • KT-58123 Update deprecations in native atomic classes for 1.9.20
  • KT-58887 Reflection: "IllegalArgumentException: argument type mismatch" when using reflection to invoke a value class returning function that suspends
  • KT-61342 kotlin-test-wasm-* artifacts include test code
  • KT-61315 Publish common sources in kotlin-test-js sources jar
  • KT-56608 WASI Preview1 version of Kotlin/Wasm stdlib
  • KT-55765 Review and stabilize stdlib surface available in K/N
  • KT-53154 Deprecate enumValues and replace it with enumEntries in standard library
  • KT-55297 kotlin-stdlib should declare constraints on kotlin-stdlib-jdk8 and kotlin-stdlib-jdk7
  • KT-60911 Compatibility publishing of kotlin-stdlib-common
  • KT-57838 Native: raise ExperimentalNativeApi opt-in requirement level to ERROR
  • KT-58402 Migrate Vector128 from kotlin.native to kotlinx.cinterop
  • KT-53791 Publish standard library as a multiplatform artifact with Gradle metadata
  • KT-57363 Remove reified constraint from Array constructors in platforms where Array type parameter is not required to be reified
  • KT-57401 Native: Regex matching zero length should split surrogate pairs
  • KT-57359 Provide Common StringBuilder.append/insert with primitive type arguments
  • KT-58264 K2: republish kotlinx.metadata to support LV 2.0
  • KT-57710 Native: Internalize @Retain and @RetainForTarget annotations
  • KT-57720 Native: Consider strictening NativeRuntimeApi opt-in requirement level to ERROR
  • KT-57837 Deprecate kotlin.native.SharedImmutable and kotlin.native.concurrent.SharedImmutable
  • KT-58126 Wasm: Consider removing Primitive.equals(Primitive) overload on primitive types
  • KT-53327 Migrate all usages of 'Enum.values' to 'Enum.entries' in standard library
  • KT-59366 Deprecate KmModule.annotations
  • KT-59365 Get rid of two-stage parsing in KotlinClassMetadata
  • KT-35116 Enum.valueOf throws inconsistent exception across multiple platforms
  • KT-59223 Native Enum.hashCode should return identity hash code, similar to JVM
  • KT-56637 Native: 'String.indexOf' matches byte sequences not on the char boundary, which also makes the result of 'split' and 'replace' operation incorrect
  • KT-59192 Align behavior of collection constructors across platforms

Native

  • KT-61417 Native: string and array variables are not properly displayed in lldb when compiling with caches with Xcode 15
  • KT-60230 Native: "unknown options: -ios_simulator_version_min -sdk_version" with Xcode 15 beta 3
  • KT-50463 Native: Provide a way to control the KONAN_DATA_DIR by the Gradle mechanisms
  • KT-59448 K2: IR and FIR signatures are not same for composable functions
  • KT-59149 Native: check compiler compatibility with Xcode 15 beta 1
  • KT-58537 iOS project fails to build with rootProject.name = "Contains Space"
  • KT-59073 Native: don't include kotlinx.cli endorsed library into compiler distribution
  • KT-58654 Compiler error from kotlin.collections.Map : "Invalid phi record", while compiling for kotlin native

Native. C Export

  • KT-56182 [K2/N] C export doesn't work for non-root packages with K2

Native. C and ObjC Import

  • KT-55578 Custom user message for linker error
  • KT-56041 [K2/N] Fix broken __builtin_nanf(String)
  • KT-57716 [K2/N] Validation failed in file smoke.kt : unexpected type: expected platform.objc.Protocol?, got objcnames.classes.Protocol?
  • KT-56028 [K2/N] cnames.structs.Foo does not resolve
  • KT-52882 MPP / Native: expect/actual mechanism broken when base contract is NSObjectProtocol
  • KT-59643 K2: Disable merging of forward declaration with real declaration class
  • KT-59642 Remove ability to import forward declaration by library package name
  • KT-59645 Cast to objective C forward declaration crashes compiler
  • KT-58793 [K2/N] Package separators after mangling are different for IR and FIR

Native. ObjC Export

  • KT-56090 [K2/N] Emit DocString klib extensions for ObjCExport

Native. Runtime. Memory

  • KT-57773 Kotlin/Native: track memory in big chunks in the GC scheduler
  • KT-55364 Implement custom allocator for Kotlin/Native
  • KT-57772 Kotlin/Native: concurrently process weak references in GC
  • KT-57771 Kotlin/Native: parallel mark in GC

Native. Stdlib

  • KT-60608 Introduce AtomicArrays API in K/N stdlib
  • KT-61507 Native: enum hashcode is not final
  • KT-59120 Native: Rewrite stdlib AtomicReference with Volatile instead of custom C++ code

Reflection

  • KT-61304 Reflection: Calling data class copy method via reflection (callBy) fails when the data class has exactly 64 fields
  • KT-41373 "KotlinReflectionInternalError: Unresolved class" when inspecting anonymous Java class
  • KT-52071 Continue gracefully when the system property check "kotlin.ignore.old.metadata" fails

Tools. CLI

  • KT-60662 Add JVM target bytecode version 21
  • KT-58183 ParseCommandLineArgumentsKt.parseCommandLineArguments takes ~500ms
  • KT-58690 OutOfMemory when compiling in CLI
  • KT-58065 K2: Enable light tree instead of PSI for CLI compilation of JS and Native by default

Tools. CLI. Native

  • KT-59245 [K1/N] Compile sources to native binary in two stages
  • KT-56855 [K2/N] Command-line compiler doesn't support compiling sources directly to a native binary (without intermediate klib) with -language-version 2.0

Tools. Commonizer

  • KT-59859 Change the OptIn Level to Error for kotlinx.cinterop.UnsafeNumber
  • KT-59132 K2/Native/CInterop: [UPPER_BOUND_VIOLATED] Type argument is not within its bounds: should be subtype of 'kotlinx/cinterop/CPointed'
  • KT-47641 Enabled cInterop commonization triggers native compilation during Gradle sync in IDE

Tools. Compiler Plugin API

  • KT-58638 K2: Annotations generated by IR plugins are not included into metadata
  • KT-60051 K2: Support metadata serialization of primitive const annotation arguments generated by IR plugins

Tools. Compiler Plugins

  • KT-61550 [atomicfu-compiler-plugin]: check that atomic properties are declared as private or internal val
  • KT-58079 K2/atomicfu: JVM IR transformer crash on atomic extension functions
  • KT-55876 K2. "[Internal Error] java.lang.NoClassDefFoundError: org/jetbrains/kotlin/com/intellij/openapi/util/UserDataHolderBase" when project with languageVersion 2.0 is Built and Run using Intelij IDEA
  • KT-58049 K2: Smartcast of nullable property fails when Spring compiler plugin is present
  • KT-57468 Kotlin assignment plugin: operation name cannot be found for reference

Tools. Compiler plugins. Serialization

  • KT-58501 K2/MPP/serialization: several classifier kinds seem to miss generated serializer functions when compiled to K/JS and K/Native targets
  • KT-59768 kotlinx.serialization + K2 + JS/Native: Support meta-annotations on sealed interfaces with user-defined companions

Tools. Gradle

New Features

  • KT-44833 Gradle DSL: Add languageSettings accessor to kotlin extension that applies to all source sets
  • KT-58315 Add build metrics for Kotlin/Native task
  • KT-57398 Add ability to run compilation via build-tools-api
  • KT-34901 Gradle testFixtures don't have friendPaths set
  • KT-59000 Default standard library dependency should use the single artifact for all targets

Performance Improvements

  • KT-61426 Enabling compilation via the build tools API may cause high metaspace usage

Fixes

  • KT-48898 Can't suppress warnings by Optin() in KMM build.gradle.kts or IDEA settings
  • KT-58987 Use some available JVM target if there's no JvmTarget for the inferred toolchain version
  • KT-60660 konan.data.dir property not provided for K/N Gradle project build (on Linux or Mac) with a dependency from a Maven
  • KT-59451 [K2][1.9.0-Beta] "Errors were stored into ..." log files never actually exist
  • KT-56959 K2: Set up Ktor repo performance benchmarks with K2 enabled
  • KT-60541 Possibility to create a custom usable KotlinCompile task without using internals
  • KT-59826 Update SimpleKotlinGradleIT#testProjectIsolation to run on Gradle 8
  • KT-56178 Compatibility with Gradle 8.1 release
  • KT-54231 Compatibility with Gradle 8.0 release
  • KT-61273 KGP: TaskOutputsBackup.createSnapshot was failed by IOException sometimes
  • KT-61457 Kotlin Gradle Plugin should not use internal deprecated StartParameterInternal.isConfigurationCache
  • KT-60718 Kotlin Gradle Plugin's incremental compilation violates Project Isolation by accessing the tasks in the task graph that were produced by other projects
  • KT-60717 Kotlin Gradle Plugin violates Project Isolation restrictions by dynamically looking up properties in the project
  • KT-54232 Don't check if file exists in task file inputs configuration
  • KT-61066 [KMP] iOS "Unkown Kotlin JVM target 20"
  • KT-54160 New KGP API using lazy properties to add compiler plugin options may remove options with the same pluginId
  • KT-57565 Add ability to capture classpath snapshots via the build-tools-api
  • KT-61292 Gradle: compilation tasks may capture wrong build directory when build directory is changed after task configuration
  • KT-60839 KGP provides incorrect default value "ENABLED" for -Xpartial-linkage
  • KT-15370 Gradle DSL: add module-level kotlin options
  • KT-58234 Kotlin Gradle Plugin: Deprecate and remove KotlinCompilation.source API
  • KT-57645 build_scan failed in testBuildScanReportSmokeTestForConfigurationCache test with Gradle 8.0.2
  • KT-59827 Update configuration to validate plugin inputs
  • KT-59588 Upgrade max gradle version to max supported in kapt connected tests
  • KT-59799 Validate Gralde Integrations tests has only one tag
  • KT-59117 Add gradle integration tests for explicit api mode in Android projects
  • KT-59587 Upgrade max gradle version to max supported in jvmToolchain connected tests
  • KT-56636 Bump max Gradle version for integration tests to 8.0
  • KT-58353 Support reporting of diagnostics after projects are evaluated
  • KT-53822 Upgrade the gradle-download-task dependency of the Kotlin Gradle plugin
  • KT-58162 Kotlin Gradle Plugin: Remove kotlinx.coroutines from classpath of KGP
  • KT-58104 Check values for MPP_PLATFORMS
  • KT-58569 Bump language version for Gradle plugins dependencies to 1.5

Tools. Gradle. Cocoapods

  • KT-60050 Log reason why podInstall task is skipped
  • KT-49430 Stop invalidating iOS framework generated by KMM module on each Gradle Sync
  • KT-59522 Set the required environment for cocoapods invocations
  • KT-59263 Add diagnostic that a dummy framework is not present when build is triggered from Xcode
  • KT-59313 Elevate to error deprecation of useLibraries
  • KT-57741 KMP importing an iOS project with Xcode 14.3 fails when importing a pod that depends on libarclite_iphoneos

Tools. Gradle. JS

New Features

  • KT-49789 KJS / Gradle: Add npm style repository option for YarnRootExtension - and/or don't register github repository when download=false

Fixes

  • KT-60469 KJS: "Could not serialize value of type Build_gradle" caused by changed name in packageJson task
  • KT-60218 K/JS reports reports deprecation for non-Action dsl params in regular kotlin dsl
  • KT-56933 Add Kotlin/JS incremental tests with K2 enabled
  • KT-58970 browserTest gradle task fails if karma is used and gradle configuration cache is enabled
  • KT-42520 Add a way to setup generating separate js files for each module inside gradle
  • KT-32086 Gradle, JS: runTask.enabled = false has no effect on npm dependencies
  • KT-48358 KJS: Circular dependency when multiple second-level Gradle modules have the same name
  • KT-50530 Kotlin/JS: enabling kotlin.js.ir.output.granularity=whole-program does not remove superfluous .js output files
  • KT-50442 KJS / Gradle: webpack plugin errors not logged
  • KT-46003 KJS / IR: Should provide single distributions folder for production and development similarly to Legacy
  • KT-47319 KJS: Error when project contains two modules with same name
  • KT-46010 KJS / Gradle: Can't find a file on building on Windows
  • KT-48923 KJS / Gradle: No Webpack error messages when Node.js process exits unexpected
  • KT-51942 KJS / Gradle: fails with two projects with the same name, but different paths
  • KT-51372 Kotlin/JS: Gradle compileKotlinJs processes directory just excluded from source set
  • KT-52134 KJS: the default generated JS module name in a Gradle project with multiple subprojects is incomplete, which might cause duplicate names and build conflicts
  • KT-52776 KJS / Gradle: Webpack version update despite yarn.lock breaks Kotlin/JS build
  • KT-39173 Kotlin/JS: kotlinNpmInstall fails with Gradle plugin 1.4-M2 and transitive dependency to 1.4-M1
  • KT-55216 KJS / IR: Transitive NPM dependencies between projects are not included in jsPublicPackageJsonTask
  • KT-54182 MPP / JS: StackOverflowError when in a Gradle multi-project and Kotlin Multiplatform build with the JS IR target which depends on another with the same subproject name via a renamed published Maven artifact
  • KT-58250 The NodeJsExec tasks are not compatible with Gradle configuration cache
  • KT-58256 The D8Exec tasks are not compatible with Gradle configuration cache

Tools. Gradle. Multiplatform

New Features

  • KT-57292 Rework configuration of compiler settings in MPP Projects

Fixes

  • KT-57521 MPP: Compiler options declared in places other than languageSettings don't reach shared source sets
  • KT-58676 Enable default Kotlin Target Hierarchy by default
  • KT-59020 1.9.0 Beta Kotlin plugin Gradle sync fails with intermediate JVM + Android source set
  • KT-61056 Native-shared source sets don't receive dependency on a commonMain of 1.9.20 stdlib
  • KT-58712 Enable commonization by default if the CocoaPods plugin provided the dependencies that should be commonized
  • KT-59317 Deprecate ios() preset in favor of target hierarchy
  • KT-47144 [Multiplatform] Warn about setting *Test.dependsOn(*Main)
  • KT-59615 renderReportedDiagnostics: Rename 'isVerbose' to 'renderForTests'
  • KT-59733 Make KotlinDefaultHierarchyFallbackIllegalTargetNames to check target names disregarding the case
  • KT-55787 Deprecate dependsOn edges ending at declared source sets of platform compilations
  • KT-58872 MPP: kotlin-test library reported as published in the legacy mode
  • KT-58759 Deprecate platform, enforcedPlatform and other related to Gradle DependencyHandler methods in KotlinDependencyHandler
  • KT-59863 pluginManagement.includeBuild doesn't work when kotlin("multiplatform") applied to one of subprojects of included build
  • KT-58729 Investigate failures in KMM UI tests
  • KT-58753 Add Hedgehog AS in KMM UI tests
  • KT-58731 Fix failues in Mac tests in kt-master, kt-231-1.9.0 and kt-223-1.9.0
  • KT-59248 Fix failures in Mac tests and Android Tests in kt-223-master and kt-231-master
  • KT-58732 Run kt-master Mac tests on cloud Mac
  • KT-57686 Fix KMM UI tests again
  • KT-58316 Gradle 8: ':podDebugFrameworkIosFat' and [configuration ':debugFrameworkIosFat'] contain identical attribute sets
  • KT-60134 MPP: Include user attributes to host-specific metadata dependency configurations
  • KT-60233 Investigate publication of TargetJvmEnivornment on Kotlin configuration
  • KT-59311 Elevate to Error commonMain.dependsOn(anything)
  • KT-59320 Elevate to Error usage of jvmWithJava
  • KT-45877 MPP / Gradle: "GradleException: Please initialize at least one Kotlin target" isn't user-friendly
  • KT-59844 KGP-based import: Reduce 'red wall of errors' on dependency resolution failures
  • KT-58471 Kotlin Multiplatform plugin resolves configurations during configuration
  • KT-60158 KotlinJvmTarget.withJava: Ensure java source sets are created eagerly
  • KT-59578 External Android Target: Implement integration tests
  • KT-59268 Run multiplatform tests in intellij.git with XCode 15.0 manually
  • KT-58220 Kotlin Gradle Plugin: Kotlin 1.9 release grooming
  • KT-58305 Investigate KotlinAndroidMppIT.testCustomAttributesInAndroidTargets: being broken for AGP 7.0.4
  • KT-58255 Kotlin Gradle Plugin Lifecycle: Remove LifecycleAwareProperty
  • KT-55312 Replace "ALL_COMPILE_DEPENDENCIES_METADATA" configuration with set of metadata dependencies configurations associated per set
  • KT-54825 TCS: Gradle Sync: Dependency resolution in KGP

Tools. Gradle. Native

  • KT-58519 Migrate Xcode/CocoaPods warnings to the new diagnostics infra
  • KT-61154 NativeCompilerDownloader adds .konan/kotlin-native-prebuilt-linux-x86_64-1.9.0/konan/lib/kotlin-native-compiler-embeddable.jar as configuration cache input
  • KT-54362 Support Gradle Configuration caching in Xcode integration tasks and in CocoaPods plugin
  • KT-59252 Support configuration cache in Xcode/CocoaPods tasks with Gradle 8.1

Tools. Incremental Compile

  • KT-58547 "has several compatible actual declarations in , "

Tools. JPS

  • KT-58026 Add basic JPS build performance metrics
  • KT-57039 K2 IDE. Cannot compile gradle project with LV=2.0 via JPS with NoClassDefFoundError: org/jetbrains/kotlin/com/intellij/openapi/util/UserDataHolderBase
  • KT-58314 kotlin-build-statistics is missing for kotlin-jps-plugin

Tools. Kapt

  • KT-61114 K2 Kapt: add a Gradle property kapt.use.k2 to enable K2 Kapt
  • KT-58326 KAPT / Gradle: argument changes are ignored
  • KT-57594 K2: Investigate the Kapt features used in the quality gates projects
  • KT-60270 K2: KAPT4 tries to generate metadata for local variables
  • KT-60293 K2: KAPT4 fails to generate metadata for const vals

Tools. Maven

  • KT-26156 Maven Kotlin Plugin should not WARN when no sources found

Tools. Parcelize

  • KT-57795 Add for-ide support for Parcelize K2 jars

Tools. Scripts

  • KT-57877 K2 / Script: "IllegalArgumentException: source must not be null" during compilation
  • KT-58817 K2: support for .kts highlighting and completion

Tools. Wasm

  • KT-60654 Wasm: split wasm target into wasm-js and wasm-wasi
  • KT-57058 Do not require a return value for DOM event listeners with Kotlin/Wasm
  • KT-59062 WASM: Report errors when calling WebAssembly.instantiateStreaming in tests

Checksums

File Sha256
kotlin-compiler-1.9.20-Beta.zip 7cfb5bda0d0122345ba34ee263cc9a6e270babd71274cf809afc9fb15794d20e
kotlin-native-linux-x86_64-1.9.20-Beta.tar.gz e18926163e2c4b2bee0fb2ecb2aab494b7152c0091615991b9adaf3b24c5c646
kotlin-native-macos-x86_64-1.9.20-Beta.tar.gz c8ebb55c8f27b658350021904cf5a75ff107cfcbfeccd4b9eb8732782806411c
kotlin-native-macos-aarch64-1.9.20-Beta.tar.gz 64d881d398cea2c6cf39671f2c2de5f0dd9ed5266bbaad930cf708e50cf1c2c9
kotlin-native-windows-x86_64-1.9.20-Beta.zip 71073615edfe338a76adfa7db1e887be891b223ab85b9e7d621e342bc2cba8c4