github JetBrains/kotlin v1.9.0-Beta
Kotlin 1.9.0-Beta

latest releases: build-1.9.24-824, build-2.0.20-dev-3483, build-1.9.24-823...
pre-release11 months ago

Changelog

Analysis API

New Features

  • KT-57930 Analysis API: provide an API for extending Kotlin resolution
  • KT-57636 K2: Add the return type of K2 reference shortener AA ShortenCommand::invokeShortening() e.g., ShorteningResultInfo to allow callers to access the shortening result PSI

Fixes

  • KT-55626 Impossible to restore symbol by psi from script file
  • KT-57314 LL FIR: Combine LLFirProvider$SymbolProviders in session dependencies (optimization)
  • KT-55527 K2 IDE: Rewrite KtScopeContext class to allow to handle each scope separately
  • KT-55329 LL FIR: Unexpected ACTUAL_WITHOUT_EXPECT error on constructor and function declaration
  • KT-50732 LL API: fix compiler based tests
  • KT-57850 K2: contract violation due to SymbolLightAccessorMethod.propertyAccessorSymbol
  • KT-56543 LL FIR: rework lazy transformers so transformers modify only declarations they suppose to
  • KT-56721 K2: FirExtensionDeclarationsSymbolProvider: java.lang.IllegalStateException: Recursive update
  • KT-50253 Analysis API: Solve issues with ProcessCancelledException
  • KT-56800 K2 IDE: optimize deprecation calculation for symbols
  • KT-55006 Analysis API does not transform Java type refs for callable symbol return types
  • KT-57256 AA FIR: Reduce lazy resolve phase for deprecation status
  • KT-58141 K2: AA FIR: impossible to restore symbol for declaration with annotation with argument inside type
  • KT-57462 Symbol Light Classes: SymbolLightFieldForProperty should retrieve annotations not from KtPropertySymbol, but from the corresponding backing field
  • KT-58249 Analysis API: Disable error logging for FE10 implementation of resolveCall when resolve is not successful
  • KT-54864 Analysis API: add function to get expect KtSymbol list by actual KtSymbol
  • KT-56763 Analysis API: .KtSourceModuleImpl is missing in the map. on symbol restore when symbol cannot be seen from the use-site module
  • KT-56617 Analysis API: optimize KtFirSymbolProviderByJavaPsi.getNamedClassSymbol
  • KT-54430 K2: .getAllOverriddenSymbols() returns invalid results

Backend. Native. Debug

  • KT-55440 Kotlin/Native debugger: inline function parameters are not visible during debugging

Backend. Wasm

  • KT-57136 K/Wasm: Restrict non-external types in JS interop
  • KT-57060 Clarify the lack of support for dynamic in Kotlin/Wasm
  • KT-56955 K/Wasm: Support restricted version of K/JS js(code)
  • KT-57276 Wasm: "Body not found for function" error when compiling konform library with Kotlin/Wasm support
  • KT-56976 K/Wasm bug with calling override of external function with default parameters
  • KT-56584 K/Wasm: Can't link symbol class

Compiler

New Features

  • KT-49276 Warn about potential overload resolution change if Range/Progression starts implementing Collection
  • KT-55333 Allow secondary constructors in value classes with bodies
  • KT-54944 @Volatile support in native
  • KT-54746 Deprecate with ERROR JvmDefault annotation and old -Xjvm-default modes
  • KT-29378 K2: rework warnings/errors for equality/identity operators on incompatible types
  • KT-57010 Kotlin/Native: make it possible to compile bitcode in a separate compiler invocation
  • KT-55691 K2: Avoid inferring Nothing? in presence of other constraints (beside type parameter bounds)
  • KT-46288 Unexpected behavior of extension function on lambda with suspend receiver
  • KT-24779 Inconsistent smart cast behavior for bound data flow values

Performance Improvements

  • KT-56906 FIR: Use cached instance of FirImplicitTypeRefImpl in FIR builders
  • KT-56276 LanguageVersion.getVersionString() allocates 5k objects on project opening

Fixes

  • KT-56609 K2: False positive NULL_FOR_NONNULL_TYPE with -Xjsr305=strict and @Nullable annotation Java parameter
  • KT-56656 K1/K2: inconsistent NOTHING_TO_OVERRIDE with complex nullable annotations
  • KT-58332 K2: local fun with suspend type is not marked as suspend in IR
  • KT-57991 K2: Modifier 'suspend' is not applicable to 'anonymous function'
  • KT-4113 No smartcast for nullable lambda property (functional type) with implicit/operator invoke call
  • KT-54294 K2: "Not all type variables found" in builder inference with type parameters inferred through a union of two branches
  • KT-52597 Provide Alpha Support for Multiplatform in the K2 platform
  • KT-58523 K2: reference is resolved to imported type-alias instead of identically named top-level property
  • KT-57098 Native: avoid object initialization while accessing const val
  • KT-57973 32-th default value in inline classes override function is not used
  • KT-57714 "IllegalStateException: <B::!>" using reified generics
  • KT-57810 toString of object erroneously considered as constant function in string concatenation
  • KT-58076 K2: Incorrect inference of type of labeled receiver
  • KT-57929 K2: Arguments of annotations are not calculated in a lot of strange locations
  • KT-55388 Consider enabling ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated
  • KT-53041 NPE in Kotlin 1.7.0 when using RxJava Maybe.doOnEvent with anonymous parameters
  • KT-54829 Cleanup local types approximation logic
  • KT-38871 Kotlin Gradle DSL, MPP: UNUSED_VARIABLE when configuring a sourceset with delegated property
  • KT-58587 MUST_BE_INITIALIZED must take into account effectivelly final
  • KT-58524 K2: false-positive overload resolution ambiguity error on invoking a generic class's member function with id-shaped function-typed parameter on intersection-typed receiver
  • KT-53929 Enum.entries: consider changing scope behavior in K1
  • KT-58520 K2: FIR2IR: ISE during const evaluation of operator times with exposed
  • KT-56662 K1: false negative INVISIBLE_SETTER for a var with internal setter accessed from a derived class
  • KT-57770 K2: Support generation of serializer if base class for serializable class declared in different module
  • KT-58375 Kapt: "wrong number of type arguments. required 1" when more than 22 type arguments
  • KT-56077 K2: build atomicfu
  • KT-56074 K2: build Space JVM (snapshot 2022.3)
  • KT-48870 [FIR] Different behavior for explicit receiver resolution inside delegated constructors
  • KT-53865 Partial linkage: overriding function with parameter losing vararg: Native is successful, JS fails in runtime
  • KT-53568 Partial linkage: absent class as type parameter bound causes failure of compileProductionExecutableKotlinJs
  • KT-53608 Partial linkage: Kotlin/JS fails with IllegalStateException: "Validation failed in file" when overridden declaration was visible, but now private
  • KT-53663 Partial linkage: usage of property which becomes abstract: no IrLinkageError, but AssertionError in Native backend instead
  • KT-53938 Partial linkage: with turning interface into class and using as second parent Native build fails
  • KT-53939 Partial linkage: with turning object into class linkNative and jsTest tasks fail
  • KT-53941 Partial linkage: with turning class into object accessing member via parameterless constructor does not fail
  • KT-53970 Partial linkage: on turning nested class into inner JS tasks are successful, Native build fails
  • KT-53972 Partial linkage: turning inner class into nested: with usage in executable Native fails with NPE in backend
  • KT-53971 Partial linkage: turning inner class into nested: without usage in executable Native is successful, JavaScript fails
  • KT-53995 Partial linkage: on turning class to abstract and direct constructor call Naive fails, JavaScript is successful
  • KT-58013 K2: "Not enough information to infer type variable T" when using assert non-null (!!) and delegation
  • KT-54045 Partial linkage: turning class into type alias + calculating implicit function type: build fails with UninitializedPropertyAccessException: "lateinit property parent has not been initialized"
  • KT-54046 Partial linkage: turning type alias into class + using it as type: build fails with AssertionError: "Expected exactly one delegating constructor call but none encountered"
  • KT-53887 Partial linkage: turning from enum to regular class + reference to enum contant causes compileProductionExecutableKotlinJs fail with IllegalStateException
  • KT-54047 Partial linkage: reference to removed enum const causes JS fail with "IllegalStateException: Validation failed in file"
  • KT-54048 Partial linkage: reference to removed enum const in runtime causes Native fail with IllegalStateException at IrBindablePublicSymbolBase.getOwner()
  • KT-57784 "NullPointerException: Parameter specified as non-null is null:" with enum, companion object, 'entries' and map
  • KT-58365 K2: Fix stub types leakage in builder inference caused by implicit receiver type update with partially resolved calls (IGNORE_LEAKED_INTERNAL_TYPES for stub types)
  • KT-58214 Continuation parameter only exists in lowered suspend functions, but function origin is LOCAL_FUNCTION_FOR_LAMBDA
  • KT-58135 K2: Priority of extension property is lower than ordinary property
  • KT-57181 [K1/N, K2/N] Expect and Actual funs have different IdSignature.CommonSignature, if Expect has default argument
  • KT-56023 Constant operations (e.g. division) are not constant in K2 (JS, Native)
  • KT-57354 In suspend function default arguments are sometimes not deleted in IR
  • KT-55242 K2/MPP: basic build/link functionality
  • KT-57979 K2: Unresolved reference error when assigning to Java synthetic property with a different nullability getter
  • KT-58142 K2: val parameter with more specific type is lower priority
  • KT-54518 False negative NON_PUBLIC_CALL_FROM_PUBLIC_INLINE when calling internal method of super class
  • KT-58025 K2: Argument type mismatch when using Springs HandlerMethodArgumentResolver
  • KT-57373 K2: FIR properties synthesized when implementing interface by delegation don't have accessors
  • KT-58259 Unexpected unresolved function call with obvious invoke-convention desugaring
  • KT-57135 K2: Fir should take into account an annotation's allowed targets as well as the use-site target when deciding whether it applies to a property, a field, or a constructor parameter
  • KT-57958 K2: Initializer type mismatch when using extension property on type with star projection
  • KT-58149 K2: New inference error with buildList
  • KT-58008 K2: "Cannot find cached type parameter by FIR symbol: T" on suspend function with generic and nested class
  • KT-57835 K2: compiler crash on lambda with dynamic receiver
  • KT-56500 The type parameter TYPE_PARAMETER name:E index:0 variance: superTypes:[kotlin.Any?] reified:false is not defined in the referenced function FUN LOCAL_FUNCTION_FOR_LAMBDA
  • KT-58143 K2: overload resolution ambiguity inside dynamic lambda
  • KT-58132 K2: Implicit int constant to long converion crashes FirSerializer
  • KT-57378 Partial linkage: Run codegen box tests for Native & JS with enabled PL
  • KT-58207 K2: Handle result of completion of synthetic call with callable reference argument
  • KT-56549 K2: Reference to Java sealed class fails to compile
  • KT-57994 K2: Type inference failed on function reference
  • KT-58099 interop0 test fails with error "type kotlin.String? is not supported here: doesn't correspond to any C type"
  • KT-57671 Synthetic $EntriesMappings declaration is public and generated even for enums from current module on IC
  • KT-56517 K2: Reference to Java record fails to compile: "unresolved reference", "Overload resolution ambiguity between candidates"
  • KT-58163 FIR: deserialized default property setter and getter must have FirResolvePhase.ANALYZED_DEPENDENCIES phase
  • KT-55646 K2: Report definitely non-nullable as reified error
  • KT-56442 K2: Make sure K2 has the same behavior for defaults with overrides as K1 has
  • KT-55904 Fix tests for volatile annotation on K2
  • KT-57928 K2: Arguments of annotations on constructor value parameter are not calculated
  • KT-57814 K2: Argument type mismatch with delegating property
  • KT-56490 Implement deprecation for an anonymous type exposed from inline functions with type argument
  • KT-57962 K2: No set method providing array access on dynamic
  • KT-57353 K2: unresolved reference when using fully qualified object declaration name as an expression, when a declaration package is from another klib and has at least two name segments
  • KT-57988 K2: compiler exception on get operator on dynamic this
  • KT-57960 K2: incorrect type inference in lambda with dynamic receiver
  • KT-56511 K1: false negative SMARTCAST_IMPOSSIBLE when alien constructor property is accessed from a private class
  • KT-55079 Refactor DiagnosticReporterByTrackingStrategy and fix some "diagnostic into black hole" problems
  • KT-57961 K2: Unresolved reference using dynamic lambda parameter
  • KT-57880 K2: false-positive argument type mismatch due to lambda receiver shadowing labeled outer lambda receiver when assigning lambda to variable
  • KT-57947 K2: Incorrect resolution results when property type for invokeExtension is not inferred
  • KT-56687 Unexpected behaviour with enum entries when using outdated stdlib
  • KT-57806 K2: string interpolation as annotation parameter causes error
  • KT-57611 K2: Annotation arguments are not evaluated
  • KT-56190 [K2/N] Const initializers are not serialized to klib
  • KT-57843 K2: Missing diagnostic when calling constructor through typealias whose expansion has a deprecation
  • KT-57350 FIR: deprecation diagnostic is not reported on a super class call
  • KT-57769 [K2] Load properties in proper order for classes compiled with kotlinx.serialization and LV < 2.0
  • KT-56258 VerifyError: Bad local variable type when using -Xdebug
  • KT-57839 K2: Compiler crash on lambda returning anonymous object with implemented lambda
  • KT-57822 K2: Can't refer to external interface from class literal
  • KT-57809 K2: No value passed for parameter of external class
  • KT-56383 Build intellij master with LV 1.9
  • KT-55056 Builder inference causes incorrect type inference result in related call
  • KT-30905 Expect var property with default public setter matches with actual var property with private setter
  • KT-56030 [K2/N] Support Objective-C overloading by param names only
  • KT-57665 K2: incorrect resolution of dynamic type
  • KT-57763 FirExtensionRegistrar extension point broken
  • KT-40903 Forbid actual member in expect class
  • KT-56965 K/N: linkDebugFrameworkIosArm64 tasks failing with UnsupportedOperationException: VAR name:disposables type:com.badoo.reaktive.disposable.CompositeDisposable [val]
  • KT-57768 Don't decompile code to search for annotation arguments
  • KT-55628 Diagnostics for kotlin.concurrent.Volatile annotation applicability
  • KT-56815 compileKotlin task is stuck with while(true) and suspend function
  • KT-55860 K2. [CONFLICTING_INHERITED_MEMBERS] for inheritor of a class with overloaded generic function
  • KT-55316 K2. IllegalStateException on incorrect import directive name
  • KT-55804 K2: UNSAFE_CALL Non-nullable generic marked as nullable even if non-null asserted
  • KT-55405 K2: false-negative INVISIBLE_REFERENCE in import directives
  • KT-54781 K2: no error on unresolved import statement with more than one package
  • KT-55902 K2: Support ImplicitIntegerCoercion annotation
  • KT-56577 Migrate Native KLIB ABI compatibility tests to K2
  • KT-56603 [K2/N] Segfault invoking fun from binary compatible klib
  • KT-54894 K2: False positive RETURN_TYPE_MISMATCH on function which returns a functional type with @UnsafeVariance argument
  • KT-57602 K2: Rework member scope of types having projection arguments for covariant parameters
  • KT-50550 False positive NO_ELSE_IN_WHEN with annotated when branch condition
  • KT-57431 K2 MPP JS: Compiler crash on transitive common dependencies
  • KT-57510 K2: Data class equals/hashCode/toString methods are not written to Klib metadata
  • KT-56336 [K2/N] Multiplatform test fails with unexpected "actual declaration has no corresponding expected declaration" compiler error
  • KT-57556 K2: Rename error 'This API is not available after FIR'
  • KT-56583 K1: Implement opt-in for integer cinterop conversions
  • KT-23447 Integer.toChar compiles to missing method
  • KT-46465 Deprecate and make open Number.toChar()
  • KT-56119 BinaryVersion.isCompatible binary compatibility is broken
  • KT-56527 K2: "AssertionError: Assertion failed" during compilation in SequentialFilePositionFinder
  • KT-55469 [K2/N] equals(Double,Double) and equals(Boolean,Boolean) are not found
  • KT-55055 K1: Builder inference violates upper bound
  • KT-57316 Initialize Enum.entries eagerly: avoid using invokedynamics
  • KT-57491 Kotlin synthetic parameter looks ordinary
  • KT-56747 [K2/N] Return type for lambda: (Any) -> Any which returns Unit is different for K1 and K2 and return statement is missing with K2
  • KT-57211 K2: incorrect "error: an annotation argument must be a compile-time constant" on unsigned array in annotation argument
  • KT-57424 K2 IDE: "By now the annotations argument mapping should have been resolved" exception
  • KT-56171 Implement deprecation warning for missing PRIVATE_CLASS_MEMBER_FROM_INLINE error
  • KT-57241 K2 MPP: Actualization doesn't work for actual enum that has primary constructor with arguments
  • KT-57210 K2 MPP: Support of arguments with dynamic type
  • KT-57182 K2 MPP: Actualization doesn't work for nested objects
  • KT-56344 K2: Implement correct errors reporting of IrActualizer
  • KT-54405 K2 compiler allows val redeclaration
  • KT-54531 [K2] Uncaught Runtime exception is thrown instead of user friendly error messages with details in case -no-jdk option set to true
  • KT-57131 K2: stdlib test compilation fails on ListTest.kt in FirJvmMangleComputer
  • KT-56913 K2: Incorrect line numbers in overriden field getters and setters
  • KT-56982 K2: Incorrect line number start in when expression
  • KT-56720 K2: false positive MANY_IMPL_MEMBER_NOT_IMPLEMENTED in case of delegation in diamond inheritance
  • KT-57198 K2: false-positive type mismatch error on inherited raw-typed class with type parameters in upper bounds of other type parameters
  • KT-15470 Inconsistency: use-site 'set' target is a compilation error, use-site 'get' target is ok
  • KT-57405 K2. Function call ambiguity error when nullable String is passed to function with Spring @Nullable annotation in signature
  • KT-57242 Equals behaviour for value classes implementing interfaces is different between 1.8.10 and 1.8.20-RC
  • KT-57261 "IllegalArgumentException was thrown at: MemoizedInlineClassReplacements.getSpecializedEqualsMethod" when comparing non-inline class instance with an inline class instance
  • KT-27261 Contracts for infix functions don't work (for receivers and parameters)
  • KT-57036 Unresolved reference: with inferred type of class constructor with extension parameter
  • KT-56177 K2: FIR should not generate annotation on both property and parameter
  • KT-54990 NI: Type mismatch when encountering bounded type parameter and projections
  • KT-57107 Handling of Windows line endings CRLF broken in latest snapshot with K2
  • KT-57117 K2: Compiler reports invalid columns in diagnostics in case of crlf line endings
  • KT-55828 [K2/N]: Fix test fails in OPT mode : Internal compiler error: no implementation found ... when building itable/vtable
  • KT-56169 False negative deprecation warning about future inference error with builder inference
  • KT-56657 K1/K2: inconsistent behavior in nullability mismatch (Guava hash set/map)
  • KT-56379 K2: build tests for the Kotlin standard library
  • KT-56079 K2: build YouTrack 2022.3
  • KT-56696 K2: Allow to access uninitialized member properties in non-inPlace lambdas in class initialization
  • KT-56630 FIR: ClassCastException on compilation hierarchy with a raw type
  • KT-57171 K2: Implement bytecode tests
  • KT-56814 K2. PsiElement is null inside IrClass. As a result ClassBuilder defineClass gets null as origin
  • KT-54758 Deprecate ClassBuilderInterceptorExtension.interceptClassBuilderFactory and provide another method without dependency on K1
  • KT-57253 K2: clean up callable reference logic in FIR2IR
  • KT-56225 K2. "BackendException: Backend Internal error: Exception during IR lowering" error on incorrect constructor in inline class
  • KT-56769 K2. Annotation applicability is ignored during compilation when there's use-site @target
  • KT-56616 K2: cannot infer Java array type properly
  • KT-56506 K1/K2 inconsistency: VAL_REASSIGNMENT on synthetic setter with different nullability
  • KT-56665 K2: false positive RECURSIVE_TYPEALIAS_EXPANSION
  • KT-53966 K2 does not support SAM conversions with condition into Java/Kotlin functional interfaces
  • KT-56013 K2. a set of errors about local properties are missing
  • KT-56771 FIR: Increment operator on qualified expressions leads to exception from resolve
  • KT-56548 K2: false positive overload resolution ambiguity for Java record constructor
  • KT-56476 K2: false positive NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY at inline fun use-site
  • KT-56138 K2: Illegal conversion of lambda with parameters to ExtensionFunction expected type
  • KT-55966 K2: Not enough information to infer type variable K if smartcast is used
  • KT-55423 K2: Implement CONTRACT_NOT_ALLOWED
  • KT-53846 K2 / Context receivers: ClassCastException on secondary constructor of class with context receiver
  • KT-57029 Per-file caches fail on local inline function in an inline function
  • KT-57033 Make KtClassLiteralExpression stub based
  • KT-57035 Make KtCollectionLiteralExpression stub based
  • KT-40857 Invalid parameterized types for extension function on parameterized receiver when javaParameters=true
  • KT-56154 Compiler backend crash on reference to Java synthetic property from generic class
  • KT-55879 Modularized tests: fir.bench.language.version is used as API version, not language version
  • KT-55886 K2: Wrong code location mapping with Windows line endings
  • KT-51821 ClassCastException on anonymous fun interface implementation when unrelated vararg is used
  • KT-57053 Problem around anonymous objects in inline functions
  • KT-56579 [K2/N] IR actualizer crashed with K2 on expect annotation marked with @OptionalExpectation, without actual.
  • KT-56750 K2: "IllegalArgumentException: No argument for parameter VALUE_PARAMETER" when calling typealias method reference
  • KT-55614 K2: consider serializing static enum members (values/valueOf/entries) to match K1 behavior
  • KT-30507 Unsound smartcast if null assignment inside index place and plusAssign/minusAssign is used
  • KT-56646 K2: "IllegalStateException: No single implementation found for: FUN FAKE_OVERRIDE" when compiling a functional interface
  • KT-56514 K2 should report ACTUAL_TYPE_ALIAS_NOT_TO_CLASS
  • KT-56522 K2 should report ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS
  • KT-56542 K2: false positive TOO_MANY_ARGUMENTS in VarHandle.set call
  • KT-56861 FIR: test FirPluginBlackBoxCodegenTestGenerated.testClassWithAllPropertiesConstructor is failing with runtime error
  • KT-56234 K2: "ISE: Expected value generated with NEW" with inline property setter and noinline parameter
  • KT-56722 K2: cannot resolve component call after smart cast
  • KT-56714 K2: wrong argument mapping in DSL
  • KT-56723 K2: lambda accidentally returns Unit? instead of Unit
  • KT-56847 Unresolved reference to Java annotation in Kotlin class with the same name packages
  • KT-55877 K2: Secondary constructor without call to parent: no frontend error, ISE: "Null argument in ExpressionCodegen for parameter VALUE_PARAMETER"
  • KT-56386 K2: Make possible to access Java field which is shadowed by Kotlin invisible property`
  • KT-56862 Compatibility problem with using Kotlin in Intellij 223 or higher because of missing particular trove4j dependency
  • KT-55088 JS, Native compilation fail with internal error on SomeEnum.entries reference when SomeEnum is from klib compiled with disabled EnumEntries language feature
  • KT-40904 No warning when declare actual in the same target (module) as expect
  • KT-56707 K2: Unexpected TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM where only getter type specified explicitly
  • KT-56508 Context receivers: Internal compiler error when compiling code containing a class with a secondary constructor
  • KT-56505 K2: Missing NO_EXPLICIT_VISIBILITY_IN_API_MODE errors on various declarations
  • KT-56215 JVM: Object extension function nullable receiver null check false negative when object is null
  • KT-56188 K/N: AssertionError when casting SAM wrapper with generic type parameter
  • KT-56033 Restore 'isMostPreciseContravariantArgument' function signature for compatibility
  • KT-56612 K2: false positive NO_TYPE_ARGUMENTS_ON_RHS on raw cast with type alias based argument
  • KT-56701 K2 (with LightTree) reports syntax errors without additional information
  • KT-56649 K2 uses 0-index for line numbers rather than 1-index
  • KT-56445 K2: False-positive unresolved reference to callable reference to function with default argument
  • KT-55024 K2: overload resolution ambiguity/unresolved reference if variable is smart-casted to an invisible internal class
  • KT-55722 K2: Incorrect OVERLOAD_RESOLUTION_AMBIGUITY with smart cast on dispatch receiver (simple)
  • KT-56563 Inference within if stops working when changing expected type from Any to a different type
  • KT-55936 K2: Support proper resolution of callable references as last statements in lambda
  • KT-45989 FIR: wrong callable reference type inferred
  • KT-55217 Appendable::append reference resolve inconsistencies
  • KT-55169 K2: False-negative NO_ELSE_IN_WHEN
  • KT-55932 K2. No compiler error when elvis operator returns not matched type
  • KT-53987 K2: False negative "TYPE_MISMATCH" with if statement return
  • KT-55436 K1: implement warning about shadowing of the derived property by the base class field
  • KT-56521 Static scope initializers sometimes not called when first accessed from interop
  • KT-41038 NI: TYPE_MISMATCH when passing constructor of nested class
  • KT-42449 Can not resolve property for value of type Any even after casting type to a type with star projection
  • KT-52934 StackOverflow from PseudocodeTraverserKt.collectDataFromSubgraph with if inside finally
  • KT-52860 StackOverflowError when casting involving recursive generics and star projection
  • KT-52424 ClassCastException: Wrong smartcast to Nothing? with if-else in nullable lambda parameter
  • KT-52262 TYPE_MISMATCH: Nonnull smartcasting fails with non-exhaustive when
  • KT-51045 SETTER_PROJECTED_OUT: Star projected nullable property can't be set to null
  • KT-40480 [FIR] Support hasStableParameterName from metadata
  • KT-50134 NI: Type inference regression in java streams groupingBy
  • KT-50160 False positive "USELESS_CAST" caused by indexed access operator
  • KT-42715 Unable to use implicit lambda param it for overloaded methods
  • KT-49045 False positive USELESS_CAST in generic type with nullable type parameter
  • KT-49024 AssertionError: Variance conflict: type parameter variance 'out' and projection kind 'in' cannot be combined
  • KT-48975 Type mismatch: inferred type is X but Nothing! was expected with the AssertJ latest version
  • KT-47870 INVISIBLE_MEMBER: Kotlin class can't access protected annotation defined in Java parent class
  • KT-47495 ReenteringLazyValueComputationException on invalid code
  • KT-47490 Missed diagnostic for incorrect callable reference in finally
  • KT-47484 "Recursion detected in a lazy value under LockBasedStorageManager" on invalid code
  • KT-46301 Combining branches with sealed interfaces in when breaks type inference
  • KT-44392 False negative: redundant nullability/not null check on cast with as operator
  • KT-43936 Recursion detected on input: ANNOTATION_ENTRY with annotation on star-imported nested class
  • KT-43846 No smart cast when returning function closures with captured smart-cast variable
  • KT-43603 False positive USELESS_CAST leads to TYPECHECKER_HAS_RUN_INTO_RECURSIVE_PROBLEM on "when" with smart cast and extension property
  • KT-43553 JVM / IR: "AssertionError: Unbound symbols not allowed" caused by annotation class with TYPE target
  • KT-42169 False negative CAST_NEVER_SUCCEEDS for incompatible types with generic parameter and star projection
  • KT-42136 NI: False positive [USELESS_CAST] when list serves to create a mutable list
  • KT-41721 SAM conversion fails on varargs with type approximated to Nothing
  • KT-38288 Unresolved reference for type parameter upper bound of nested class when outer class extends it with star projected type argument
  • KT-37490 NULL_FOR_NONNULL_TYPE: "Null can not be a value of a non-null type Nothing" when null is passed to nullable argument of type projected method
  • KT-37365 NPE from ReflectionReferencesGenerator.generateCallableReference with inner class function reference and wrong parenthesis
  • KT-36958 NI: missed unresolved on parenthesized callable reference passing through call (back-ends throw an exception)
  • KT-30756 No smartcast if elvis operator as a smartcast source in while or do-while is used as the last statement
  • KT-24737 Report an error on invalid this-expression with angle brackets on left-hand side of a callable reference
  • KT-21463 Compiler doesn't take into accout a type parameter upper bound if a corresponding type argument is in projection
  • KT-6822 Smart cast doesn't work inside local returned expression in lambda
  • KT-56073 K2: build Exposed
  • KT-55840 Inconsistency between members of enums in bytecode between FE 1.0 + JVM IR and FIR + JVM IR
  • KT-47815 JVM: "Recursion detected in a lazy value under LockBasedStorageManager" when trying to inherit interface from a class with non-trivial function
  • KT-17817 No error reported on invalid LHS for class literal
  • KT-47373 Missed diagnostics on/after non-null assertion (!!) on generic class class use with class literal
  • KT-51143 Wrong Unit-requiring at if/when branch with stub types
  • KT-53671 False-positive diagnostic reported on OptIn annotation import from root package
  • KT-53494 Mistaken type inference in compound 'if' expression with nullability check and covariant type
  • KT-28668 "AssertionError: Unrelated types in SAM conversion for index variable" if lambda argument of '[...]' in LHS of augmented assignment is used as an implementation for different SAM interfaces
  • KT-55931 Inference for callable reference inside synthetic calls for if/when/try/etc stops working when brought into lambda for a call
  • KT-20223 Inline access check ignores operator calls to invoke()
  • KT-54478 @NoInfer causes CONFLICTING_OVERLOADS
  • KT-56472 K2: Add stack of all FIR elements to CheckerContext
  • KT-41126 [FIR] Inconsistency of a compiler behaviour at init block for an enum entry with and without a qualifier name
  • KT-54931 Annotations defined in nested classes cannot be instantiated directly
  • KT-24901 No smart cast for when with early return
  • KT-7389 No intersection type for type parameter with multiple upper bounds in star projection
  • KT-53086 "Cannot access '' before superclass constructor has been called" with inner class secondary constructor
  • KT-55137 Callable references with conversion are incorrectly allowed to be promoted to KFunction
  • KT-30497 EXACTLY_ONCE contract doesn't work in a function with vararg parameter
  • KT-47074 Front-end Internal error: Failed to analyze declaration State / java.lang.IllegalStateException: Should not be called! when try to add Parcelize
  • KT-24503 Return-as-expression is allowed as this/super constructor parameter
  • KT-55379 False positive NO_ELSE_IN_WHEN with smartcast to Boolean
  • KT-47750 False positive NO_ELSE_IN_WHEN in presence of smartcast to sealed interface
  • KT-53819 False positive UNINITIALIZED_VARIABLE with secondary constructor and custom property getter in local class
  • KT-56457 JVM: Enum.entries are not annotated with @NotNull
  • KT-56072 K2. "IllegalStateException: Fir2IrSimpleFunctionSymbol for is already bound" when trying to access java synthetic property of inherited class
  • KT-50082 Kotlin non-overriding property of subclass doesn't shadow same-named Java field from base class
  • KT-55822 False positive ABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTED with raw types and mixed overridden members
  • KT-55666 K2: label on local function is rejected: "Target label does not denote a function"
  • KT-56283 False-positive INVISIBLE_MEMBER on overridden member of more specific type after smart cast
  • KT-51969 [FIR] Compilation for expect value class fails with "Fir2IrSimpleFunctionSymbol for [declaration] is already bound"
  • KT-56061 K1 does not report error on inconsistent synthetic property assignment
  • KT-55125 Difference in generated bytecode for open suspend functions of generic classes
  • KT-55295 K2/MPP: JS build functionality
  • KT-55909 [K2/N] IndexOutOfBoundsException for a reference to a function defined in companion object superclass
  • KT-55664 K2: eliminate ClassId.isSame call from FirClass.isSubclassOf
  • KT-55747 K2. "Convention for 'mod' is forbidden. Use 'rem'" error is missing
  • KT-56104 Unnecessary inner classes attributes in class files for subclasses
  • KT-55570 K2: ACTUAL_WITHOUT_EXPECT error is not reported on a simple actual class
  • KT-56176 [K2/N] "IllegalStateException: actual type is kotlin.Int, expected kotlin.Long" when expected type uses typealias
  • KT-56199 K2 + MPP + kotlinx.serialization: java.lang.VerifyError: Bad type on operand stack in aaload
  • KT-56212 K2: Exception when compiling extension function declaration with illegally chained type parameter receiver
  • KT-54140 SOE at IrBasedDescriptorsKt.makeKotlinType with mixing recursive definitely not nullable type with nullability
  • KT-56224 Clarify message "Secondary constructors with bodies are reserved for for future releases" for secondary constructors in value classes with bodies
  • KT-55503 K2: "Argument type mismatch" caused by using the wrong "this"
  • KT-56050 K2: inconsistency regarding visibility of synthetic properties with protected getter and public setter
  • KT-49663 FIR: Support @kotlin.jvm.PurelyImplements for java collections
  • KT-54507 K2: Wrong implicitModality for interface in FirHelpers
  • KT-55468 [K2/N] Crash with debuginfo caused by changed tree using IMPLICIT_COERCION_TO_UNIT
  • KT-56269 [K2/N] Don't test "Tailrec is not allowed on open members" in K2
  • KT-56172 K2: Fix reporting of PRIVATE_CLASS_MEMBER_FROM_INLINE error
  • KT-54647 K2: Function call with Lambda on LHS of assignment leads to KotlinExceptionWithAttachments: FirDeclaration was not found for class org.jetbrains.kotlin.psi.KtFunctionLiteral
  • KT-54648 K2: Function call on left side of erroneous assignment isn't resolved
  • KT-55171 Put new contracts syntax under a feature flag
  • KT-55699 K2. False Negative "Type parameter T is not an expression"
  • KT-55973 K2: Exception from UnusedChecker on an unused destructuring
  • KT-56275 K2 IDE: Missed error for enum super type
  • KT-54775 K2. "IllegalStateException: Expected FirResolvedTypeRef with ConeKotlinType but was FirImplicitTypeRefImpl " exception on incorrect code
  • KT-55528 K2: CFA for property initialization analysis is not run for class initialization graphs
  • KT-54410 K2: Deprecation warning instead of "this declaration is only available since Kotlin X" when language version in project are below required to use language feature
  • KT-55186 K2: No compilation error on calling exception without constructor
  • KT-36776 Treat special constructions (if, when, try) as a usual calls when there is expected type
  • KT-54694 Consider enabling BooleanElvisBoundSmartCasts in K1 or K2
  • KT-54587 K2. CCE on compilation when some operator fun is needed and it is implemented as an extension function for another class
  • KT-54417 K2: move receiver-targeted annotations to KtReceiverParameterSymbol and remove it from FirProperty receiver type
  • KT-33917 Prohibit to expose anonymous types from private inline functions

IDE

Performance Improvements

  • KT-56613 Reduce memory consumption of light classes

Fixes

  • KT-57849 K2: contract violation due to implicit java type with annotation
  • KT-57857 LC: FakeFileForLightClass: Read access is allowed from inside read-action
  • KT-57578 SLC: incorrect upper bound wildcards
  • KT-57917 Analysis API: decompiled value parameters are not resolved
  • KT-56046 K2 IDE: Avoid redundant resolve from annotations
  • KT-57569 SLC: incorrect visibility for lateinit var with private setter
  • KT-57547 SLC: non-last vararg value parameter type mismatch
  • KT-57548 SLC: incorrect inheritance list for Comparator
  • KT-57579 SLC: unboxed type argument as method return type
  • KT-56843 Light classes: certain kinds of constant values in property initializers aren't supported
  • KT-56868 SLC: IncorrectOperationException on enum annotation arguments that are not valid Java identifiers
  • KT-56833 Light classes: Accessors to lateinit properties don't have @NotNull annotations
  • KT-56845 Light classes: Overridden property accessors don't have @Override annotation
  • KT-56441 K2 IDE: reference from Java to ObjectName.INSTANCE of private object is red in IDE, but compiled successfully
  • KT-56891 Symbol Classes: DefaultImpls classes contain methods without default implementation
  • KT-56842 Light Classes: Primitive-backed context receiver parameters shouldn't be marked with @NotNull
  • KT-56835 Light classes: Underlying fields for delegated properties should be marked as final and @NotNull
  • KT-56840 Light Classes: Inline classes backed by Java primitives shouldn't be marked with @NotNull
  • KT-56728 K2 IDE. False positive not applicable to for kotlin annotation with target annotating Java element
  • KT-55815 SLC: Keep annotations on type when converting to PsiType
  • KT-55669 K2 IDE: INRE from light classes
  • KT-55150 Argument for @NotNull parameter 'scope' of org/jetbrains/kotlin/resolve/AnnotationResolverImpl.resolveAnnotationType must not be null

IDE. Misc

  • KT-58763 K2 IDE: NoSuchMethodError: KtPsiFactory$Companion.contextual

IDE. Script

  • KT-56632 Script configuration cannot be loaded for embedded code snippets

JavaScript

New Features

  • KT-12784 JS: generate ES2015 compatible modules
  • KT-48154 KJS / IR: Inline members support for external types
  • KT-51582 FIR: support basic compile-time evaluation for JS backend

Fixes

  • KT-39650 KJS IR: provide a way to enable ES2015 class generation
  • KT-57990 KJS/IR. Invalid super call for final parent methods (ES classes)
  • KT-58246 KJS: ES15 classses — duplicated code in class constructor
  • KT-57479 KJS: Add an annotation for a function parameter which checks that a passed argument has an external type
  • KT-51706 Partial linkage: in case of absent symbol referred from declaration Native compiler is successful, JavaScript fails
  • KT-56237 KJS + IC: Adding or removing interface default implementation doesn't invalidate children and doesn't update JS code
  • KT-54638 K2/JS: Fir2ir - implement and use JS-specific mangler
  • KT-54028 Native / JS: Using private object implementing a sealed interface causes a linker error
  • KT-57423 KJS: Add an annotation for external interfaces which allows to be inherited only by other external interfaces, classes or objects
  • KT-57711 K2: Native & JS fail to compile a KLIB that uses const val from a dependency KLIB
  • KT-43490 KJS / IR: "Cannot set property message of Error which has only a getter" caused by class that is child of Throwable
  • KT-57078 JS IC: Unbound symbol left in SymbolTable in JsIr[ES6]InvalidationTestGenerated.testBreakKlibBinaryCompatibilityWithVariance tests
  • KT-54452 Kotlin/JS libraries with "joined" legacy+IR content: publish IR sources for them
  • KT-57254 Deprecate external enum declarations
  • KT-57002 KJS: "JsParserException: missing name after . operator" when a js(...) block contains an interpolated constant
  • KT-53180 Kotlin/JS: generated TypeScript constructor can have "TS1016: A required parameter cannot follow an optional parameter" error with certain properties order
  • KT-56961 JS IR: serializedIrFileFingerprints in klib manifest has a wrong format
  • KT-56282 KJS: Invalidate incremental cache in case of compiler internal errors
  • KT-55720 KJS: ReferenceError: SuspendFunction1 is not defined with 1.8 when importingkotlin.coroutines.SuspendFunction1
  • KT-56469 KJS: BE Incremental rebuild spoils source map comment

KMM Plugin

  • KT-55402 "Framework not found SQLCipher": after selection of "Regular framework" as "iOS framework distribution" and installing SqlCihper through CocoaPods
  • KT-55988 KN debugger in KMM plugin for Android Studio can't recognize the source code

Language Design

  • KT-53778 Release stdlib API about "rangeUntil" operator in 1.9
  • KT-53653 Export Enum.entries to Objective-C and Swift
  • KT-55177 Deprecate declaration of expect and actual counterparts of same class in one module
  • KT-28850 Prohibit protected visibility in final expected classes
  • KT-39362 Expect fun interface must have actual fun interface counterpart
  • KT-57395 Delay ForbidInferringPostponedTypeVariableIntoDeclaredUpperBound feature to LV 2.0
  • KT-55082 Bump KLib version for Enum.entries

Libraries

New Features

  • KT-58046 Stabilize remaining kotlin.time API: time sources, time marks, measureTime
  • KT-58074 Stabilization of Atomics API in K/N
  • KT-55268 Mutiplatform @Volatile annotation
  • KT-51908 Provide common function for getting regex capture group by name
  • KT-53263 Path.createParentDirectories
  • KT-7637 Add toString() to standard delegates classes (NotNullVar, LazyVal, BlockingLazyVal, ...)
  • KT-40728 Add AssertionError constructor with cause: Throwable parameter to common stdlib
  • KT-57298 Avoid FileAlreadyExistsException from Path.createParentDirectories in case of parent is symlink

Performance Improvements

  • KT-54739 build method in collection builders (Set, Map, List) should return a single instance for empty collections
  • KT-42589 Provide common listOf(value) overload to avoid allocation of the vararg
  • KT-55091 Stdlib: Sequence.toSet() and Sequence.toList() may create the collection twice
  • KT-57617 Optimize ReversedListReadOnly iterator
  • KT-57607 KJS: Bad performance for ArrayList.addAll

Fixes

  • KT-58841 Serialization: NPE when obtaining a serializer of a sealed base class with a self-referencing property
  • KT-55612 Stabilize experimental API for 1.9
  • KT-57728 Explicitly specify level of stability of programmatically-accessible interoperability API
  • KT-58548 Stabilize standard library API for Enum.entries
  • KT-58276 Deprecate redundant public declarations in kotlin.native.concurrent
  • KT-57762 Introduce HexFormat for formatting and parsing hexadecimals
  • KT-57317 Repack EnumEntries from stdlib into the compiler
  • KT-54702 Native: mark Worker and related APIs as obsolete
  • KT-55610 Deprecate kotlin.jvm.Volatile annotation in platforms except JVM
  • KT-57404 Native: Support AnnotationTarget.TYPE_PARAMETER
  • KT-57318 Change EnumEntries stdlib implementation to be eager
  • KT-57137 Native: Consider removing ArrayAsList
  • KT-55935 [Kotlin/JVM] Path.copyToRecursively does not work across file systems
  • KT-51579 PlatformImplementations loading is not compatible with graalvm native-image --no-fallback

Native

  • KT-52594 Provide Alpha support for Native in the K2 platform
  • KT-56443 Native link task reports w: Cached libraries will not be used for optimized compilation
  • KT-56071 K2/MPP: Native build functionality
  • KT-56218 [K2/N] Receiver annotations for properties are not serialized
  • KT-56326 [K2/N] RemoveRedundantCallsToStaticInitializersPhase removes important static initializer
  • KT-54098 Decommission and remove 'enableEndorsedLibs' flag from Gradle setup

Native. Build Infrastructure

  • KT-58160 Native: performance build configuration fails with NoSuchMethodError: 'boolean kotlinx.coroutines.CompletableDeferredKt.completeWith(kotlinx.coroutines.CompletableDeferred, java.lang.Object)'

Native. C and ObjC Import

  • KT-54610 Kotlin Native can't call objc_direct functions
  • KT-54805 KMP ios memory leak when using CA Layer
  • KT-57490 [K/N] Duplicate package names for cinterop klibs with objc protocols fails to link
  • KT-57541 Compilation fails without explicit cast on cinterop code

Native. ObjC Export

  • KT-56464 K/N: Allow HiddenFromObjC for classes
  • KT-57507 K2: Set of Objc exported declarations is different between K1 and K2

Native. Runtime

  • KT-58441 Kotlin/Native: @ObjCAction @ObjCOutlet generate bridges without switching state
  • KT-57091 Align Native and Java file/class initialization behavior

Native. Runtime. Memory

  • KT-56233 [Kotlin/Native] Crash when enum values are accessed in multiple threads
  • KT-58130 Implement preview of custom allocator for Kotlin/Native
  • KT-56402 Native: if a Kotlin peer for an Obj-C object is created on the main thread, then Kotlin runtime should run objc_release for it on the main thread

Native. Stdlib

  • KT-57344 Try to remove strange .equals overload on primitive types
  • KT-57592 Native: Remove the default parameter value for AtomicLong constructor

Native. Testing

  • KT-57349 Enable more K2 MPP codegen/box tests for Kotlin/Native
  • KT-57026 K2: Fix Native test infrastructure for MPP

Reflection

  • KT-56650 ArrayStoreException from InlineClassAwareCaller.call with an array of inline class
  • KT-56093 Metaspace leak in a Gradle plugin built with Kotlin 1.8.0
  • KT-27585 Flaky IllegalPropertyDelegateAccessException: Cannot obtain the delegate of a non-accessible property. Use "isAccessible = true" to make the property accessible
  • KT-55937 Optimize implementation of kotlinFunction/kotlinProperty
  • KT-54833 Reflection: Incorrect behaviour for Field.kotlinProperty function in companion objects

Tools. CLI

  • KT-56209 Add CLI support for HMPP in K2
  • KT-57495 Add JVM target bytecode version 20
  • KT-56789 Metaspace memory leak in CoreJrtFileSystem
  • KT-57077 1.8.20-RC-243 shows Java 19 warnings even if configured with Java 17 toolchain
  • KT-56992 Performance test regression in Gradle when switching to Kotlin 1.8.20
  • KT-57644 K2: Prohibit passing HMPP module structure with CLI arguments to metadata compiler
  • KT-56925 Remove warning about assignment plugin
  • KT-56351 Reduce memory usage spent on compiler settings

Tools. Commonizer

  • KT-57796 NoSuchFileException in :module-B:commonizeCInterop with Kotlin 1.8.20
  • KT-56207 Investigate failing tests in ClassifierCommonizationFromSourcesTest

Tools. Compiler Plugins

Fixes

  • KT-57406 FIR Compiler plugins: Assignment plugin incorrectly recognizes qualified names of annotations
  • KT-57400 FIR Compiler Plugins: annotated predicate does not work with Java classes
  • KT-57140 K2: Implement backwards compatibility for FirFunctionTypeKindExtension
  • KT-55375 Remove "legacy" mode of jvm-abi-gen plugin
  • KT-53470 FIR: pass MemberGenerationContext to all methods of FirDeclarationGenerationExtension
  • KT-51092 Lombok @Value causes IllegalAccessError
  • KT-56487 Add more methods to DescriptorSerializerPlugin
  • KT-55885 K2 plugin API: Backend-only declarations are not visible from other modules
  • KT-55584 K2: Improve registration of session components from compiler plugins
  • KT-55843 FIR Plugin API: metaAnnotated predicate returns meta-annotation itself as well
  • KT-53874 Optimize checking for plugin applicability and redesign DeclarationPredicates

Tools. Compiler plugins. Serialization

  • KT-58067 Serialization: NullPointerException caused by @Contextual property with type with generic
  • KT-57730 Serialization: "IllegalStateException: Serializer for element of type .Foo has not been found" caused by serialization of Java type
  • KT-56594 K2/serialization reports SERIALIZER_NOT_FOUND over aliased String or primitive types
  • KT-56990 "AssertionError: SyntheticAccessorLowering should not attempt to modify other files" in kotlinx-serialization using @Serializer and List argument
  • KT-56553 Support 'serialization plugin intrinsics' feature in K2
  • KT-56244 kotlinx.serialization compiler intrinsic does not work with encodeToString function in 1.8.0

Tools. Daemon

  • KT-50846 Remove "new" Kotlin daemon from codebase

Tools. Gradle

New Features

  • KT-57159 Add project level compiler options for Kotlin/JVM plugin
  • KT-56971 Expose jvmTargetValidationMode property in KotlinCompile Gradle task

Performance Improvements

  • KT-57052 Gradle: Stop using exceptions for flow control
  • KT-57757 Reduce classpath snapshotter memory consumption
  • KT-56052 Implement an in-memory wrapper for PersistentHashMap to avoid applying changes to IC caches before successful compilation

Fixes

  • KT-58745 KaptGenerateStubs task should also be configured with the same compiler plugin options
  • KT-58571 ExplicitApi mode should not apply for test compilations
  • KT-52811 Kotlin Serialization metadata issue due to incompatibility between Gradle Kotlin embedded version and Kotlin Gradle Plugin version
  • KT-57224 Add an indicator into build metrics report to show whether K1 or K2 compiler was used to compile the code
  • KT-58682 Explicit api mode does not apply in MPP projects
  • KT-57736 K2: Introduce an easy way to try K2 compiler in Gradle user projects
  • KT-52976 Remove deprecated Gradle conventions usages
  • KT-58530 Compiler plugin unbundling changes should be backward compatible with Kotlin plugin
  • KT-36904 Adding folders to sourceSets.resources.srcDir() in Gradle script does not work
  • KT-57330 Provide collection of usage statistics for the Dokka
  • KT-58619 Move all pm20 interfaces into Gradle plugin codebase
  • KT-58320 Kotlin daemon OOM help message is missing on OOM in Kotlin Daemon itself
  • KT-58167 Applying KAPT plugin to Gradle 8.1 causes configuration cache miss
  • KT-53923 Add 'progressive' compiler argument to Gradle compiler options
  • KT-53924 Add 'optIn' compiler arguments to Gradle compiler options
  • KT-53748 Remove KotlinCompile setClasspath/getClasspath methods
  • KT-56454 Bump minimal support AGP version to 4.2.2
  • KT-57767 Gradle: "ZipException: invalid entry size" with 1.8.20
  • KT-57397 Add infrastructure to use the build-tools-api to run compilation from Gradle
  • KT-56946 Switch incremental Gradle tests for K2 to use language version 2.0
  • KT-55624 Update KGP integration tests that use removed in Gradle 8 getClassifier method
  • KT-57782 Disable daemon fallback strategy for Gradle integration tests by default
  • KT-56645 Gradle: KGP reports an incorrect resources processing task name for JVM projects
  • KT-55824 Deprecate commonMain.dependsOn(anything) in user scripts
  • KT-57142 Split org.jetbrains.kotlin.gradle.tasks/Tasks.kt into several source files
  • KT-56211 Improve Kotlin build reports
  • KT-54447 Remove usage of deprecated internal Gradle field in Kotlin Gradle Plugin, replace with equivalent in public API
  • KT-49785 Avoid creating task output backups until really needed
  • KT-56047 False positive message about full recompilation is displayed while restoring from build cache and then making a syntax error
  • KT-56421 Gradle: plugin should not use BasePluginExtension deprecated properties
  • KT-55241 Gradle: the VariantImplementationFactories build service state is not persistent making impossible to access factories with configuration cache lazily
  • KT-56414 Dependency locking and failed builds with Kotlin 1.8.10
  • KT-56357 Gradle: "DefaultTaskCollection#configureEach(Action) on task set cannot be executed in the current context" because of VariantImplementationFactories
  • KT-56352 Make build scan reports more readable
  • KT-52149 Gradle: declare shared build services usages with Task#usesService
  • KT-55741 Gradle 8: Build service '' is being used by task '' without the corresponding declaration via 'Task#usesService'.
  • KT-55174 KotlinCompile task produces deprecation "Build service 'variant_impl_factories_...' is being used by task"
  • KT-55972 Gradle: Add an assertion to all integration tests if warningMode is not FAIL, but the build doesn't produce any warnings

Tools. Gradle. Cocoapods

  • KT-38749 Support dependencies between pods when using the cocoapods plugin
  • KT-54161 Support adding extra code to generated Podfile from the Kotlin gradle plugin
  • KT-49430 Stop invalidating iOS framework generated by KMM module on each Gradle Sync
  • KT-56304 Podspec generated with new K/N artifact DSL contains wrong artifact names for static and dynamic libraries
  • KT-56162 Provide granular Gradle warnings suppression for CocoaPodsIT

Tools. Gradle. JS

New Features

  • KT-32209 org.jetbrains.kotlin.js does not respect Gradle's archivesBaseName
  • KT-56158 KJS: Support implementation dependencies
  • KT-48791 KJS: Support for Power(ppc64le) and Z(s390x)

Fixes

  • KT-57985 K/JS: packageJson Gradle configurations don't inherit unique attributes from JsTarget DSL
  • KT-57817 JS: executables for couple of JS targets builds in the same directory
  • KT-58199 K/JS: Remove useCoverage method
  • KT-57116 KJS / Gradle: commonWebpackConfig not applied if called after binaries.executable()
  • KT-58522 K/JS: Upgrade NPM dependency versions
  • KT-57629 K/JS: Change default destination of JS production distribution
  • KT-57480 K/JS: Use IR compiler by default without explicit choosing of js compiler
  • KT-58345 K/JS: Webpack task skipped with ES modules because files have mjs extension
  • KT-56458 KJS / Gradle: Unnecessary and confusing "There are multiple versions of "kotlin" used in nodejs build" generated from YarnImportedPackagesVersionResolver
  • KT-56690 Kotlin2JsCompiler friendDependencies cannot be configured through friendPaths
  • KT-57920 K/JS: Make imported NPM package not considering dev dependencies
  • KT-56025 KJS / Gradle: Gradle 8.0 jsBrowserProductionWebpack uses the output of another project's jsProductionExecutableCompileSync
  • KT-57630 K/JS: webpack updating twice on one change of kt sources
  • KT-47351 KJS / IR: :jsTestPackageJson is unable to find nested included builds under composite build
  • KT-57387 Remove support of webpack 4
  • KT-57386 Kotlin/JS upgrade npm dependencies
  • KT-56765 K/JS: Several binaries use same cache directory
  • KT-56488 Debugger won't stop on breakpoints of JS browser test
  • KT-56705 KJS / Gradle: Module name starting with '@' isn't properly set when FUS is disabled
  • KT-56719 KJS / Gradle: Compile sync task has to sync only changed files
  • KT-46428 KJS / IR: Composing build failed "Failed to create MD5 hash for package.json"
  • KT-53687 Don't trigger npm and yarn related tasks if it not relevant for assemble
  • KT-49915 KJS / Gradle: Gradle build cache miss because of absolute path in KotlinJsIrLink.filteredArgumentsMap
  • KT-56192 KJS: In browser testing no original sources in stacktrace
  • KT-42395 Kotlin/JS: Gradle DSL: PackageJson.customField() does not accept null
  • KT-43305 Support Node.JS downloading for Ubuntu
  • KT-48631 KJS: Unconditionally uses linux/x86 binaries
  • KT-38015 NodeJS installation does not extract symlinks correctly (npm and npx)

Tools. Gradle. Multiplatform

New Features

  • KT-55881 Add possibility to enable/disable sources publication similar to Java Gradle Plugin API

Fixes

  • KT-55751 MPP / Gradle: Consumable configurations must have unique attributes
  • KT-49933 Support Gradle Configuration caching with HMPP
  • KT-58470 Warning about using MPP libraries published in the legacy mode is not reported if the dependency is declared in an intermediate source set
  • KT-58086 Warn about using MPP libraries published in the legacy mode
  • KT-58466 K2 Gradle: non *.kt files are passed to -Xfragment-sources
  • KT-58319 kotlin.git: ProjectMetadataProviderImpl "Unexpected source set 'commonMain'"
  • KT-58281 Kotlin Gradle Plugin: Enable Kotlin/Android SourceSetLayout v2 by default
  • KT-51940 HMPP resolves configurations during configuration
  • KT-41506 UnknownDomainObjectException: "KotlinSourceSet with name not found" when creating custom compilations after applying withJava to an MPP JVM target
  • KT-58209 Do not use the term 'Module' in KotlinTargetHierarchy
  • KT-56285 TCS: Gradle Sync: IdeProjectToProjectCInteropDependencyResolver: Ensure lenient resolution
  • KT-56571 New import broke apiVersion for commonMain, commonTest and jvmAndAndroidMain modules
  • KT-56536 Multiplatform: Composite build fails on included build with rootProject.name != buildIdentifier.name
  • KT-56841 MPP: Module-to-module dependencies don't work inside included build in included build
  • KT-42748 Project that transitively depends on composite build of multimodule multiplatform library cannot resolve dependencies properly
  • KT-52356 MPP / Gradle: Missing common classes on KMM project integrated via Gradle included build into an Android application
  • KT-51293 Unresolved references with hierarchical project structure when building KotlinMetadata from native-common source set
  • KT-56729 commonizeCInterop: Duplicated libraries: co.touchlab:sqliter-driver-cinterop-sqlite3
  • KT-56510 Import with included plugin build may fail with OverlappingFileLockException during commonizeNativeDistribution
  • KT-56700 V2 MPP Source Set layout warnings should include link to docs
  • KT-56115 Multiplatform;Composite Builds: Support import with cinterop commonization enabled
  • KT-56429 Fix flaky: MppIdeDependencyResolutionIT.test cinterops - are stored in root gradle folder
  • KT-56337 Unable to import a project with cinterop with enableKgpDependencyResolution
  • KT-55926 TCS: Gradle Sync: Import Extras on KotlinSourceSet and KotlinTarget
  • KT-55891 Deprecate pre-HMPP flags
  • KT-56278 TCS: Gradle Sync: [MISSING_DEPENDENCY_CLASS] on libraries used in shared native source sets
  • KT-55730 MPP / Gradle: compileKotlinMetadata fails to resolve symbols in additional source sets
  • KT-56204 KotlinTargetHierarchy: Changing naming from 'any' to 'with' prefix
  • KT-56111 Multiplatform;Composite Builds: Clean builds fail on when 'hostSpecificMetadata' is required

Tools. Gradle. Native

  • KT-53108 Expose Kotlin/Native compiler options as Gradle DSL
  • KT-58063 Kotlin/Native tasks configuration cache are not compatible with Gradle 8.1
  • KT-38317 Kotlin/Native: NSURLConnection HTTPS requests fail in iOS tests due to --standalone simctl flag
  • KT-37051 MPP Gradle plugin: duplicated cinterop libraries in composite build
  • KT-56280 Gradle: freeCompilerArgs are no longer propagated from compilations to Native binaries
  • KT-56205 Shared Native Compilation: False positive 'w: Could not find' warnings on metadata klibs

Tools. Incremental Compile

  • KT-58289 IC fails to detect a change to class annotations
  • KT-56197 If use classpathSnapshot, the invoke place of subclass's super function who has default parameters will not recompiled if it is incremental build
  • KT-56886 K2: Changes to Java sources used in Kotlin project do not trigger a rebuild if a previous build was successful
  • KT-55021 New IC: "The following LookupSymbols are not yet converted to programSymbols" when removing/renaming file facades

Tools. JPS

  • KT-56438 Add minimal statistic report for JPS build
  • KT-58314 kotlin-build-statistics is missing for kotlin-jps-plugin
  • KT-55696 JPS IC K2 - fix new failing tests with Java interop
  • KT-57102 SCE: DefaultErrorMessages$Extension: DefaultErrorMessagesWasm not a subtype after adding WASM error messages
  • KT-56165 Language version 1.9 and 2.0 is absent in Kotlin Compiler settings

Tools. Kapt

  • KT-57598 K2: Support a fallback mode executing Kapt with K1 even when the compiler is run with languageVersion=2.0
  • KT-54468 KAPT Gradle plugin causes eager task creation
  • KT-58027 Kotlin 1.8.20 kapt issue "null: KtCallExpression: build()"
  • KT-58226 KAPT: “org.jetbrains.kotlin.psi2ir.generators.ErrorExpressionException: null: KtNameReferenceExpression” with enum with secondary constructor
  • KT-56360 Kapt with JVM IR changes fields order
  • KT-54380 Kapt / IR: Build failed when inheritance by functional interface with suspend modifier

Tools. Maven

  • KT-58101 'Unable to access class' in kotlin-maven-plugin after updating to Kotlin 1.8.20
  • KT-58048 Maven: "Too many source module declarations found" after upgrading to 1.8.20
  • KT-13995 Maven: Kotlin compiler plugin should respect model's compile source roots
  • KT-55709 Maven: "java.lang.reflect.InaccessibleObjectException: Unable to make field protected java.io.OutputStream java.io.FilterOutputStream.out accessible"

Tools. Scripts

  • KT-58366 The obsolete kotlin-script-util jar is still published and contains broken JSR-223 implementation

Tools. Wasm

  • KT-56585 Change wasmBrowserRun Browser Executable to System Default
  • KT-56159 Running (karma) tests doesn't work in a project generated by wizard "Browser Application for Kotlin/Wasm"
  • KT-57203 Update Kotlin/Wasm to support Gradle 8

Checksums

File Sha256
kotlin-compiler-1.9.0-Beta.zip e0f069c5777cf6558c8fc18751953cdb04f748284a4160a9c4880df2b9e2329a
kotlin-native-linux-x86_64-1.9.0-Beta.tar.gz af2b42db19bc57225d394f6ea9130ddc1d251d42cfc5a4247ff592ee37980839
kotlin-native-macos-x86_64-1.9.0-Beta.tar.gz f4669e484f3f4f4c4d3c1583e88ca7cca22f835847144786d1cb0530760cba5b
kotlin-native-macos-aarch64-1.9.0-Beta.tar.gz 2885c77e9367671f9293f31cd117f23e5b642fa44a6b737125494cc24a13c66f
kotlin-native-windows-x86_64-1.9.0-Beta.zip d32776a80d91a92ab1437666d7d98bc2ac42db13b401adc13170e3f1753fa1f0

Don't miss a new kotlin release

NewReleases is sending notifications on new releases.