Update dependency org.jetbrains.kotlin:kotlin-maven-allopen to v2.2.0
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| org.jetbrains.kotlin:kotlin-maven-allopen (source) | build | minor |
2.1.21 -> 2.2.0
|
Release Notes
JetBrains/kotlin (org.jetbrains.kotlin:kotlin-maven-allopen)
v2.2.0: Kotlin 2.2.0
Changelog
Analysis API
-
KT-73337Migrate analysis sources to new IR parameter API -
KT-75880K2 Mode: Typealias reference resolves to the underlying class in KMP project -
KT-74246KaVisibilityChecker.isVisible is inefficient with multiple calls on the same use-site -
KT-57733Analysis API: Use optimizedModuleWithDependenciesScopes in combined symbol providers -
KT-69535Redesign 'containingSymbol' -
KT-69950Analysis API: IntroduceisSubtypeOf(ClassId) -
KT-68393Analysis API: RenameKaClassLikeSymbol. classIdIfNonLocaltoclassId -
KT-62924Analysis API: rename KtCallableSymbol.callableIdIfNonLocal -> callableId
Analysis API. Code Compilation
-
KT-75502K2: IDEA hangs when evaluating inside kotlin-stdlib modules in the Kotlin project -
KT-73077Evaluation of inline functions is broken inside Kotlin project and Amper module in Idea sources -
KT-73936K2: CyclicInlineDependencyException: Inline functions have a cyclic dependency in evaluator -
KT-74582InterpreterMethodNotFoundError when trying to evaluate simple expressions after recent fixes -
KT-74524Compilation exception with incorrect JvmName annotation arguments -
KT-74443Compilation peer collector ignores inline property accessors
Analysis API. FIR
New Features
-
KT-73493Support context parameters
Performance Improvements
-
KT-75790Experiment with increasing DEFAULT_LOCKING_INTERVAL time -
KT-72159LLFirCompilerRequiredAnnotationsTargetResolver: consider rewriting it to use honest jumping locks
Fixes
-
KT-76331Cleanup FileStructureElement for classes -
KT-73117K2 AA: Exception "Setter is not found" when val has a setter without body -
KT-76540K2: Missing library dependency on Android SDK from androidx.activity-1.8.2 causes LiveEdit failures -
KT-73266K2. "Declaration should have non-local container" with unclosed annotation on top-level function -
KT-76432JavaClassUseSiteMemberScope: Expected FirResolvedTypeRef with ConeKotlinType but was FirUserTypeRefImpl -
KT-76217K2 AA: "No fir element was found for KtParameter" with multiple context parameter lists -
KT-74740Highlighting is broken after the built-in serialization refactoring -
KT-76366ContextCollector: annotations on class members don't have the class as implicit receiver -
KT-76352ContextCollector: wrong class annotation context in BODY mode -
KT-76341ContextCollector: support dangling modifiers -
KT-76332"Declaration should have non-local container" for declaration inside file annotation -
KT-76115DisableFirElementBuilder#getFirForElementInsideAnnotationsoptimization for files, classes and scripts -
KT-76347ContextCollector: avoid resolution for enum entry annotations -
KT-76272Cleanup AbstractFileStructureTest -
KT-75542K2 AA: "FirDeclaration was not found for class KtNamedFunction, fir is class FirErrorExpressionImpl" for unclosed annotation on member function -
KT-73719K2. "FirDeclaration was not found for class KtDestructuringDeclaration, fir is class FirBlockImpl" on incorrect chain call -
KT-72908K2 Analysis API: "FirDeclaration was not found for class org.jetbrains.kotlin.psi.KtFunctionLiteral" with non-local destructuring declaration without initializer beforeinitblock -
KT-75532ContextCollector: scope for an anonymous function type parameter contains regular parameters -
KT-74508FirElementBuilder#findElementInsideshould reuse logic fromKtToFirMapping#getFir -
KT-73066[LL] Enable low-level-api-fir-native even with the disabled native part -
KT-75132Investigate failures of sandbox diagnostic test -
KT-75130Set up LL FIR tests for sandbox test data -
KT-73386Standardize LL FIR test for compiler test data -
KT-75125ISE “Value classes cannot have 0 fields” on instantiating inline class without fields -
KT-75179ContextCollector: support error properties -
KT-74632K2: ISE FirLazyDelegatedConstructorCall should be calculated before accessing -
KT-74818K2 AA: "FirDeclaration was not found for class KtTypeParameter, fir is null" with TYPE_PARAMETERS_NOT_ALLOWED on anonymous function -
KT-73183Support context parameters in ContextCollectorVisitor -
KT-60350K2 IDE: top level destructuring RHS should be resolvable -
KT-74794K2: FirLazyExpression should be calculated before accessing with context parameter and implicit return type -
KT-72938Get rid of KaFirAnnotationListForReceiverParameter -
KT-73727Exception in implicit type resolution
Analysis API. Infrastructure
-
KT-74917[Analysis API, Test Framework] Introduce a way to acquirePsiFilefor a givenTestFileinKtTestModule
Analysis API. Light Classes
-
KT-73405Get rid of KtElement#{symbolPointer, symbolPointerOfType} API usages -
KT-75391Reduce the amount of psi-based logic in light classes -
KT-70001SLC adds@Overridewith zero text offset onoverridemember -
KT-75755K2. False positive red code on vararg parameters in Kotlin class with@JvmOverloadswhen called from Java -
KT-75397Constructors and functions with non-last vararg parameters are treated as varargs -
KT-74868Support context parameters -
KT-74733SymbolPsiLiteral.text == value for Java constant -
KT-74620Delegated functions with value classes are present in light classes -
KT-74595Static functions with value classes are present in light classes -
KT-74284Synthetic data class methods using value class types present in LC
Analysis API. Providers and Caches
Performance Improvements
-
KT-62115Analysis API: Package providers are not cached per search scope -
KT-74463Analysis API:LLNativeForwardDeclarationsSymbolProviderqueries its cache even when theClassIdcannot represent a native forward declaration
Fixes
-
KT-74541Analysis API: Include files generated by resolve extensions inKaModulecontent scopes -
KT-64236Analysis API: Introduce a separate module for fallback dependencies of library source modules -
KT-74090Analysis API: Support dumb mode (restricted analysis) -
KT-63780Analysis API: Invalidate resolvable library sessions when binary library modules are modified -
KT-72388KaFirStopWorldCacheCleaner: Control-flow exceptions -
KT-74943Analysis API: ReplaceKotlinGlobalModificationServicewith simpler global modification event publishing and listener-based modification trackers -
KT-70518K2: Analysis API: Access indices outside ofConcurrentMapcomputation in symbol providers -
KT-74302Analysis API:LLFirProvidershould disregard self-declarations ingetFirClassifierBy* -
KT-67868Analysis API: Improve the architecture ofLLFirKotlinSymbolProviders
Analysis API. Standalone
-
KT-72810withMultiplatformLightClassSupport is inconvenient in Standalone
Analysis API. Stubs and Decompilation
-
KT-71787PsiRawFirBuilder.Visitor#visitStringTemplateExpressionforces AST loading -
KT-68484K2 IDE, Analysis API: "We should be able to find a symbol for function" for getting KaType ofIterable<T>.map(transform: (T) -> R)parameter in J2K
Analysis API. Surface
New Features
Performance Improvements
-
KT-73669Support psi-based symbol pointer for implicit primary constructors -
KT-76008Provide PSI-based implementation forKaFirNamedClassSymbol#companionObject -
KT-70165Introduce PSI-basedKaSymbols for K2
Fixes
-
KT-72730K2: "Unexpected owner function: KtNamedFunction" on vararg val parameter in function -
KT-75123K2. KaFirNamedFunctionSymbol should contain a receiver -
KT-75894Cannot build KaFirJavaFieldSymbol for FirFieldImpl -
KT-75115Analysis API: TheJavaModuleResolvercompiler class is leaked to Analysis API platform implementations -
KT-76018K2: Stop the wold leads to deadlock/freeze -
KT-76011KaFirNamedClassSymbol#companionObjectdoesn't provide generated objects generated by compiled plugins -
KT-72482"KotlinIllegalArgumentExceptionWithAttachments: Expected all candidates to have same callableId but some of them but was different" on trying to add the import -
KT-75586KaFirPropertyGetterSymbol#isInlineandKaFirPropertySetterSymbol#isInlineis incorrect for accessors with explicit modifier -
KT-58572Analysis API: Enforcing STATUS resolve in 'KtFirNamedClassOrObjectSymbol.visibility' may cause lazy resolve contract violation -
KT-75574Recognize injected code fragment copies -
KT-75573Recognize physical file copies as dangling files -
KT-74801Analysis API: Publish/subscribe to modification events with a single message bus topic -
KT-73290Analysis API: Improve the architecture of content scopes and resolution scopes -
KT-68901Constructor delegation call receiver missing in fir implementation -
KT-72639Support context parameter API -
KT-73112AA: FirExpression.toKtReceiverValue should handle context receivers properly -
KT-74905Cannot find context receiver in FIR declaration -
KT-74563createPointeris overloaded not for all implementations -
KT-73722Analysis API: Automatically check that the API surface is fully documented -
KT-65065ProvideKtTypeReference#getShortTypeText()
Backend. Native. Debug
-
KT-75991Xcode 16.3: Fix lldb stepping test over an inline function
Backend. Wasm
New Features
-
KT-59032Support instantiation of annotation classes on WASM
Fixes
-
KT-77622K/Wasm: investigate CMP crash on mobile Safari -
KT-76747[Wasm] Wasm name section absent for wasm structs -
KT-76701K/Wasm: custom formatters are not loaded when a project is built with incremental compilation -
KT-66081K/WASM:0/0,5/0and5%0throw not ArithmeticException, but RuntimeError -
KT-76287[Wasm] Enable stdlib and kotlin.test tests after compiler bootstrap -
KT-75871[Wasm] Implement new RTTI approach -
KT-75872Wasm / IC: IllegalStateException: IC internal error: can not find library -
KT-74441K/Wasm: incorrect 1e-45.toString() -
KT-59118WASM: floating point toString inconsistencies -
KT-68948Wasm: float from variable is printed with many decimal points -
KT-69107[wasm] Seemingly incorrect rounding -
KT-73362Migrate K/Wasm sources to new IR parameter API
Compiler
New Features
-
KT-70722Implement better Kotlin warnings for value classes and JEP 390 (Warnings for Value-Based Classes) -
KT-71768Enable -Xjvm-default=all-compatibility by default to generate JVM default interface methods -
KT-54205Support jakarta Nullability annotations -
KT-57919Store all annotations in Kotlin metadata on JVM under a flag -
KT-73255Change defaulting rule for annotations -
KT-74382Annotating Java record components for@JvmRecorddata class -
KT-74811Prohibit usages of@MustUseValue/@IgnorableValueif RV checker is not enabled -
KT-74806Implement feature flag for improved unused return value checker -
KT-74809Support unnamed local variables -
KT-73508Add a warning diagnostic for using kotlin.concurrent.AtomicRef -
KT-72941ANNOTATIONS_ON_BLOCK_LEVEL_EXPRESSION_ON_THE_SAME_LINE missing in K2 -
KT-74497Warn about incompatible Kotlin and Java targets in annotations -
KT-75061Support context-sensitive resolution in type position -
KT-75315Support context-sensitive resolution in the call-argument position -
KT-75316Support context-sensitive resolution for expression-position with expected type -
KT-76088Support context-sensitive resolution for annotation arguments -
KT-74049Introduce special override rule to allow overriding T! with T & Any
Performance Improvements
-
KT-76395Performance degradation on 28.03.2025 -
KT-76422FirJavaFacade#createFirJavaClass: do not compute super type references right away -
KT-75957K2: PsiRawFirBuilder.Visitor#toFirExpression forces AST loading via getSpreadElement -
KT-74824Exponential performance caused by nested flexible types -
KT-62855K2: extra allocation for SAM conversion compared to K1 -
KT-74977K/N: support stack array for Array(size) call -
KT-74369Exponential compiler memory usage in specific situations with type inference
Fixes
-
KT-76606Enable 'Indy: Allow lambdas with annotations' by default -
KT-77301False positive Context Parameter resolution when using DslMarker -
KT-74389K2: False positive NON_EXPORTABLE_TYPE on non-UnitPromise<...>in K/JS -
KT-77219"@Composableannotation is not applicable" on vararg@Composable() -> Unit in Kotlin 2.2.0 -
KT-76357K2: a nested class annotation observes member declarations of the outer class -
KT-72734Support new callable reference nodes in Kotlin Native -
KT-74421K2: Missing "val cannot be reassigned" when trying to assign a value to parent's "val" -
KT-63720Coroutine debugger: do not optimise out local variables -
KT-74470NSME on calling in runtime internal constructor of value class with default arg from tests -
KT-77640Context parameters: using 'contextOf()' function leads to [NO_CONTEXT_ARGUMENT] -
KT-73909Add an inspection discouraging usage of kotlin.concurrent Native atomics in favor of the new atomics -
KT-76583CCE: suspend lambda attempts to unbox value class parameter twice after lambda suspended -
KT-76663KJS: KotlinNothingValueException caused by expression return since 2.1.20 -
KT-75457Native: cache machinery uses stdlib cache with default runtime options even if custom runtime options are supplied when partial linkage is disabled -
KT-76615K2: "IllegalArgumentException: Inline class types should have the same representation: Lkotlin/UByte; != B" for mixed Java/Kotlin code -
KT-77220Annotation with EXPRESSION is not allowed on lambdas in Kotlin 2.2.0 -
KT-76381K2: Expected expression 'FirPropertyAccessExpressionImpl' to be resolved -
KT-74739Native: "IllegalArgumentException: All constructors should've been lowered: FUNCTION_REFERENCE" -
KT-74325Explicit API mode does not enforce explicit return types for extension properties -
KT-77259Confusing message forANNOTATION_WILL_BE_APPLIED_ALSO_TO_PROPERTY_OR_FIELD -
KT-73771K2: Infinite compilation caused by buildList without type -
KT-61258Kotlin/Native: CLASS CLASS name: modality:FINAL visibility:local superTypes:[.Base] -
KT-75317Kotlin/Native: segfault in kotlin::gc::Markkotlin::gc::mark::ConcurrentMark::MarkTraits -
KT-75965The iOS app did not run successfully in Release mode -
KT-77397Report UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL when calling declaration with contextual function type in signature -
KT-77137K2: Controversial behavior allows resolving annotation arguments on a companion inside it -
KT-77150Native: compilation fails with an assertion error -
KT-51960ClassCastException: Inline function with both context and extension receiver produces this when invoked -
KT-73611Remove -Xextended-compiler-checks in favor of a deprecation cycle -
KT-74649Deprecate language versions 1.8 and 1.9 -
KT-77283Binary compatibility of FirDeclarationChecker -
KT-73445K2: do not report "cannot infer visibility" when inheriting multiple implementations -
KT-75945Indy: Allow lambdas with annotations -
KT-76898K2: ClassCastException when data class shadows supertype'scomponentXmethod with wrong type -
KT-75992Xcode 16.3: stacktraces on simulators are not symbolicated -
KT-76805Wrong NPE occurs when assigning synthetic properties with platform types in Kotlin 2.1.20 -
KT-76171"KotlinIllegalArgumentExceptionWithAttachments: Expected expression 'FirSingleExpressionBlock' to be resolved" -
KT-77078K2: anonymous object is wrongly allowed to implement interfaces by unsafe Delegation -
KT-72722Treat 'copy' calls of a data class as explicit constructor usages -
KT-77001Leave ForbidParenthesizedLhsInAssignments as a warning -
KT-75828Store backing field/delegate annotations and extension receiver annotations in metadata -
KT-58369K2: enable DFA warnings -
KT-51258Annotations should go before context receivers -
KT-76253K2 Compiler: Less precise diagnostic COMPONENT_FUNCTION_AMBIGUITY for flexible type -
KT-59526Store annotation default values in metadata on JVM -
KT-63850K2: setter with an annotated parameter hasisNotDefault == falseflag in metadata -
KT-75712-Wextra: false positive UNUSED_LAMBDA_EXPRESSION on functional type variable assignment with inferred type -
KT-4779Generate default methods for implementations in interfaces -
KT-69624Debugger: Missing local variable in Variables view (inline function) -
KT-75518NO_CONTEXT_ARGUMENT should report the name of the context parameter in addition to the type -
KT-76199Introduce -Xcontext-sensitive-resolution compiler flag -
KT-75553MISSING_DEPENDENCY_SUPERCLASSandMISSING_DEPENDENCY_SUPERCLASS_WARNINGis reported at the same time on the same element -
KT-76159Obsolete error "'@JvmDefaultWithCompatibility' annotation is only allowed on interfaces" should be removed -
KT-76660False negative RETURN_NOT_ALLOWED in lambda in default argument leads to NoClassDefFoundError: $$$$$NON_LOCAL_RETURN$$$$$ -
KT-76301Fail to infer types after syntactical change -
KT-74999K2: KotlinNothingValueException within Extension Function -
KT-76675KIAEWA exception at KaFirDataFlowProvider with non-local return from nested inline call -
KT-75756Backend Internal error: Exception during IR lowering when trying to access variable from providedProperties in class within kotlin custom script -
KT-76345Enhance variable fixation -
KT-76578[FIR, K1/K2 Regression]lateinitis allowed on loop parameters -
KT-76448FirOverrideChecker: class ClsMethodImpl is not a subtype of class KtNamedDeclaration for factory VIRTUAL_MEMBER_HIDDEN -
KT-73360Migrate K/JVM sources to new IR parameter API -
KT-74852Kotlin/Native: allow caches for thread state checker and sanitizers -
KT-76130IR evaluator does not support array literals in annotation parameter default values -
KT-76436Missing K2 checker: non-local return through lambda passed to inline f/o -
KT-74326False negative: no variable must be initialized error though code doesn't compile -
KT-76572FIR_NON_SUPPRESSIBLE_ERROR_NAMES does not contain deprecation errors -
KT-75704RefactorFirWhenSubjectExpression -
KT-76284Flexible captured type is not approximated in receiver position -
KT-76192RETURN_TYPE_MISMATCH with same expected and actual type: nullability of actual type is omitted -
KT-75944Allow using invokedynamic for lambdas with no 'Runtime' level retention annotations -
KT-76396FirIntegerConstantOperatorScope: NoSuchElementException: Collection contains no element matching the predicate -
KT-76209CONFLICTING_UPPER_BOUNDS onNothingbound -
KT-59506Context receivers: Unable to use trailing comma in receiver list -
KT-46119NONE_APPLICABLE instead of NAMED_ARGUMENTS_NOT_ALLOWED with overloaded Java constructor call -
KT-75503Run lazy resolution in CallableCopyTypeCalculator and use withForcedTypeCalculator everywhere in checkers -
KT-76485Don't report EXTENSION_SHADOWED_BY_MEMBER if extension can be called with named arguments -
KT-76154False positive "EXTENSION_SHADOWED_BY_MEMBER" when extension adds default values to parameters -
KT-76527False positive UNSUPPORTED_CONTEXTUAL_DECLARATION_CALL with -Xcontext-receivers and implicit invoke -
KT-63246K2: False positive NOTHING_TO_OVERRIDE in generic property with context receiver in non generic class extending generic class -
KT-58534K2: "Argument type mismatch" with typealias to context receiver functional type -
KT-71792Switch latest stable version in Kotlin project to 2.2 -
KT-74827CompilationErrorException : Could not load module in an attempt to find deserializer when trying to evaluate an expression -
KT-70352K2: False-negative CONFLICTING_UPPER_BOUNDS onNothingbound -
KT-71481K2: drop pre-1.6 language features from compiler code -
KT-74454Support trailing comma in context parameters -
KT-74069False positive UNUSED_EXPRESSION due to Long/Int conversion -
KT-74337Local Delegated properties don't preserve their annotations and don't show up in reflection -
KT-55187Context receivers in function types can have labels -
KT-58498Context receivers: ClassCastException with object and extension function in interface -
KT-58165K2: "IllegalArgumentException: No argument for parameter VALUE_PARAMETER" on overridden contextual property -
KT-75234Add error for callsInPlace contracts on context parameters -
KT-73805K2: Investigate missing diagnostic in implicit invoke call on context function type with receiver from module with disabled context parameters -
KT-41934NI: a type variable for lambda parameter has been inferred to nullable type instead of not null one -
KT-75983Backend Internal error: Exception during IR lowering 'IllegalStateException: Internal error: cannot convert Any to Int' -
KT-75535Compilation of typealias does not check for clashes -
KT-72313K2 IDE / KMP Debugger: Evaluation of inline functions declared in a common source set causes a crash -
KT-76290False positive UNUSED_EXPRESSION while returning Unit in the when branches -
KT-32358NI: Smart cast doesn't work with inline function after elvis operator -
KT-76316K2: Missing NON_PUBLIC_CALL_FROM_PUBLIC_INLINE on object extending private class in public inline function -
KT-76324Frontend diagnostic says "... this will be an error in Kotlin N.M" but N.M is already released -
KT-76058PCLA: compile-time failure on calling a higher-order function from another module inside a lambda assigned to a variable of a type with a postponed type variable -
KT-75571K2: type mismatch error provides unsubstituted types -
KT-31391'Recursive call is not a tail call' with elvis operator in tailrec function -
KT-73420False-positiveNON_TAIL_RECURSIVE_CALLon tailrec function with elvis in the return statement -
KT-75815Disable warnings about different context parameter names in overrides -
KT-75169Unnecessary EXTENSION_SHADOWED_BY_MEMBER on generic declarations -
KT-75483Native: redundant unboxing generated with smart cast -
KT-76339K2: Dangling modifier list is missed for enum entries in PSI mode -
KT-75513Avoid overrides traversal without preinitialization -
KT-74587Report an error when JvmDefaultWithoutCompatibility is used with -Xjvm-default=all -
KT-76257Annotations with class references are not supported when marking IR declarations as visible to metadata -
KT-71793Drop language versions 1.6 and 1.7 -
KT-59272Incorrect bytecode generated: wrong line number table after condition -
KT-69248K2: IAE “class KtDotQualifiedExpression is not a subtype of class KtCallExpression for factory ENUM_CLASS_CONSTRUCTOR_CALL” with qualified enum constructor call -
KT-73778Kotlin Debugger: NSFE on accessing private property from dependencies during evaluation -
KT-74131Incorrect line numbers for static initializer with delegated local variable -
KT-76320K2: PsiRawFirBuilder: import alias triggers ast loading -
KT-63851K2: NosetterValueParameterin metadata for property setter with an annotated parameter -
KT-55083JVM: AbstractMethodError caused by lambda with sealed base interface and fun sub interface and overridden method -
KT-16727Names for anonymous classes in interfaces are malformed on JDK 8 -
KT-12466NoClassDefFoundError: B$DefaultImpls on super interface call through K-J-K inheritance -
KT-71002Possible inheritance from nullable type through typealias -
KT-75293K2: Missing [HAS_NEXT_FUNCTION_TYPE_MISMATCH] diagnostics -
KT-75498Forbid .declarations access from checkers -
KT-72335KotlinIllegalArgumentExceptionWithAttachments when using illegal selector -
KT-68375K2: FirPrimaryConstructorSuperTypeChecker fails on generated superclasses -
KT-71718K2: drop TypePreservingVisibilityWrtHack -
KT-75112FE resolves wrong receivers order for property passed to delegate -
KT-75924K2. Incorrect generic type Inference "R? & Any" appears for "Add explicit type arguments" -
KT-75969java.lang.IllegalArgumentException: source must not be null on red code -
KT-75322ConeDiagnosticToFirDiagnosticKt: source must not be null -
KT-73800Wrong method executed on super call in -Xjvm-default=all/all-compatibility with an extraneous super-interface -
KT-38029Wrong method executed on super call in diamond hierarchy with covariant override -
KT-75242Any use-site target can be applied to a lambda and an expression -
KT-73051incorrect direction of subtyping violation in type mismatch error's message for A<X> </: A<Y> given a Tv <: Rv == C constraint from a lambda return position -
KT-75090Argument type mismatch: actual type is 'SuspendFunction0', but 'SuspendFunction0' was expected when anonymous function is passed to function expecting suspend function type -
KT-74956K2: No USAGE_IS_NOT_INLINABLE with compiling an inlined function call -
KT-76049K2: drop explicitTypeArgumentIfMadeFlexibleSynthetically creation when DontMakeExplicitJavaTypeArgumentsFlexible is enabled -
KT-76055K2: drop prepareCustomReturnTypeSubstitutorForFunctionCall logic when DontMakeExplicitJavaTypeArgumentsFlexible is enabled -
KT-76057K2: don't do reverse Java overridability checks when DontMakeExplicitJavaTypeArgumentsFlexible is enabled -
KT-75197K2: Missing [COMPARE_TO_TYPE_MISMATCH] diagnostics -
KT-75639Inlinecontextfunction leads toClassCastException -
KT-75677K2: change runtime behavior of KT-75649 case in 2.2 -
KT-75961K2:PsiRawFirBuilder.Visitor#visitSimpleNameExpressionforces AST loading viagetReferencedNameElement().node.text -
KT-67869Make inference for lambda working consistently inside and outside of the call -
KT-74885K2: IAE "source must not be null" in FirCyclicTypeBoundsChecker -
KT-75578K2: False negative [SUPER_CALL_WITH_DEFAULT_PARAMETERS] when calling the upper-class implementation of a method with the default value argument -
KT-73954Generate implementations in classes for inherited non-abstract methods in -Xjvm-default=all-compatibility -
KT-75173Context parameters: KotlinIllegalArgumentExceptionWithAttachments if you override function with value/extension parameter by fun with context -
KT-75742Native: "IllegalArgumentException: unknown pass name '' " when specifying an empty list of LLVM passes -
KT-74819K2: False-positive overload resolution ambiguity for flatMap inside PCLA -
KT-75093K2 IDE: "Unreachable code" highlighting range is confusing -
KT-74572Context parameters: contracts don't work with context parameters -
KT-74765Move K1 lazy IR implementation from 'ir.tree' to 'psi2ir' -
KT-71425IR Inliner: investigate return type of an inlined block -
KT-74764Native: merge init nodes generated within the same LLVM module for the same klib -
KT-75561K/N: place InteropLowering after UpgradeCallableReferences phase -
KT-73369K/N: move interop lowering up the pipeline -
KT-75517K2: Refactor FirCallableSymbol.resolvedContextParameters to return symbols -
KT-75821K2: REPL resolution doesn't take into account the property type when processing its initializer -
KT-75705IllegalArgumentException when isInitialized is used with java field -
KT-75334Java target shouldn't be specified if Kotlin target isn't specified -
KT-75157Missing PARAMETER_NAME_CHANGED_ON_OVERRIDE and DIFFERENT_NAMES_FOR_THE_SAME_PARAMETER_IN_SUPERTYPES for context parameters -
KT-75160Check usages of value parameters in checkers and adapt to context parameters -
KT-75729KtPsiFactory: no type-safe way to create triple-quoted KtStringTemplateExpression -
KT-75040UnifysubjectandsubjectVariableinFirWhenExpression -
KT-75323FirSyntheticProperty: Unexpected status. Expected is FirResolvedDeclarationStatus, but was FirDeclarationStatusImpl -
KT-75602Introduce concept of shared library session in Fir sessions -
KT-75509PARAMETER_NAME_CHANGED_ON_OVERRIDE is reported randomly -
KT-75124IAE “class org.jetbrains.kotlin.psi.KtContextReceiver is not a subtype of class org.jetbrains.kotlin.psi.KtParameter for factory EXPOSED_PARAMETER_TYPE” on private context receiver -
KT-73585K2: ABSTRACT_SUPER_CALL is not reported -
KT-75531K2 REPL: local name doesn't shadow one from implicit receiver -
KT-73359Migrate frontend sources to new IR parameter API -
KT-75380K2: Modality is configured incorrectly for some FirDefaultPropertyAccessor -
KT-75526Regression in K2 scripting: local name doesn't shadow one from the implicit receiver -
KT-59379K2: Missing MIXING_NAMED_AND_POSITIONED_ARGUMENTS -
KT-75106K2: type parameters of anonymous functions are unresolved -
KT-73387Unexpected implicit type during enhancement -
KT-72618Cannot define operator inc/dec in class context -
KT-74546Serialize context parameters to metadata -
KT-68768K2: unsuccessful inference fork with jspecify annotations -
KT-75345Add a test for KT-42271 -
KT-75012K2: Compiler crash ondynamic == null -
KT-75195IllegalStateException: No value for annotation parameter when@allmeta-target is used with annotation with constructor -
KT-75163WRONG_ANNOTATION_TARGET_WITH_USE_SITE_TARGET for@allmeta-target although there are applicable targets -
KT-75198@allmeta-target should be forbidden for delegated properties -
KT-74958K2: UNEXPECTED_TRAILING_LAMBDA_ON_A_NEW_LINE isn't reported on accidental trailing closure -
KT-74982Improve UNSUPPORTED message handling -
KT-75111False negative "This declaration needs opt-in" for usage of enum entry with OptIn marker in another module -
KT-74924Infinite recursion in substitution of captured type with recursive supertype -
KT-75289NPE: getParent(...) must not be null -
KT-75275Inline class member inherited from interface is not mangled in '-Xjvm-default=all-compatibility' -
KT-74340FIR: folding binary expression chains for psi parser -
KT-73831Do not choosefieldtarget in annotation classes -
KT-73494Enable first-only-warn annotation defaulting mode -
KT-75174K2: incorrect influence of return type nullability on required receiver type in KJK hierarchy with property -
KT-74920Overriding T! with T & Any is not allowed to the extension property receiver type -
KT-75150False ambiguous context parameter reported because context is not chosen via generic parameter -
KT-74965CLI compiler doesn't report syntax errors for JS, Metadata backends if light-tree mode is disabled -
KT-74303K2 IDE / Kotlin Debugger: AE “Trying to inline an anonymous object which is not part of the public ABI” on evaluating private inline function with object inside -
KT-75177NoSuchMethodError on suspend default interface method fake override returning inline class in -Xjvm-default=all-compatibility -
KT-74718K/N: Move TestProcessor phase to the top of the pipeline -
KT-75015Context parameters: it is possible to declare anonymous function with modifiers but they don't have any effect -
KT-75092K2: Missing errors for modifiers on anonymous function in statement position -
KT-75009Context parameters: context is unresolved inside anonymous function if passed as an argument -
KT-75017Context parameters: "IllegalStateException: Cannot find variable a: R|kotlin/String| in local storage " when context from another local function is called -
KT-75154Context receiver deprecation warning should depend on langauge version, not on LATEST_STABLE -
KT-74979Context parameters: anonymous functions with a context aren't parsed in complex cases -
KT-74673K2: ClassCastException when passing suspending functional interface with generic -
KT-74469K2: False positive: "Argument type mismatch" during Java interop -
KT-75105K2: False negative NAME_IN_CONSTRAINT_IS_NOT_A_TYPE_PARAMETER for type constraint of anonymous function -
KT-74929False positive TYPE_PARAMETER_OF_PROPERTY_NOT_USED_IN_RECEIVER if it is used with T&Any -
KT-74227K2: "Cannot infer type for this parameter. Please specify it explicitly" caused by lambda in another lambda with a parameterized function type -
KT-64558K2 compiler does not report UNNECESSARY_SAFE_CALL, UNNECESSARY_NOT_NULL_ASSERTION, USELESS_ELVIS, while K2 IDEA does -
KT-74728K2: Java method overriding Kotlin method with receiver loses vararg modifier -
KT-70789CLI error "mixing legacy and modern plugin arguments is prohibited" on using -Xcompiler-plugin unless default scripting plugin is disabled -
KT-72829Forbid 'entries' name of enum entry, and deprioritize it in resolve -
KT-75037K2: IrGeneratedDeclarationsRegistrar.registerFunctionAsMetadataVisible doesn't handle extension receivers and context parameters -
KT-73149Annotations support for context parameters -
KT-74798Report error on local contextual properties -
KT-74092Context parameters: it is not possible to declare an anonymous function with a context -
KT-52152K2: Investigate suspicious code at SAM conversions -
KT-75016K2: BackendException when context var property is declared in interface -
KT-74474K2: Report more precise diagnostic when last expression of non-unit lambda is a statement -
KT-74478K2: False negative RETURN TYPE_MISMATCH if the last statement of a lambda is indexed assignment -
KT-73685K2 IDE / Kotlin Debugger: NSME “Method not found” on evaluating function with constant value in@JvmName -
KT-74449Report RETURN_TYPE_MISMATCH instead of ARGUMENT_TYPE_MISMATCH for return expressions in lambdas -
KT-74918FIR: account for K/Wasm diagnostics in generateNonSuppressibleErrorNamesFile -
KT-74897K2: Report UNSUPPORTED_FEATURE instead of TOPLEVEL_TYPEALIASES_ONLY for nested type aliases -
KT-74963K2: Fir2Ir: Avoid a situation when startOffset > endOffset in generated IrBranch -
KT-74697Overriding a method that's both deprecated and non-deprecated should not cause warnings -
KT-74928K2: "IllegalStateException: Cannot find cached type parameter by FIR symbol" in KJK hierarchy with extension property -
KT-74630K2: local class arguments in annotations on types and type parameters are not serialized -
KT-74445Commonize Native Function/Property reference lowerings -
KT-74670Warning message CONTEXT_CLASS_OR_CONSTRUCTOR isn't reported for context receiver on the constructor -
KT-74617Trivial SMAP optimization leads to missing debug info after inline -
KT-74812compile-time failure on a callable reference with an input type inferred to an inaccessible generic type -
KT-66195K2: Java method is not enhanced from overridden's context receivers -
KT-74501Context parameters: ABSTRACT_MEMBER_NOT_IMPLEMENTED if fun with context is implemented in Java in KJK hierarchy -
KT-74385Missing diagnostic on repeated suspend modifier in function type -
KT-74749Provide explanation IR before script compilation -
KT-74751K2: IllegalStateException: Can't apply receivers of FirPropertyAccessExpressionImpl to IrTypeOperatorCallImpl -
KT-74729NPE when suspend lambda has inline class parameter -
KT-74336Not supported: class org.jetbrains.kotlin.fir.types.ConeIntersectionType -
KT-74203K2: False negative NO_ELSE_IN_WHEN of a generic type with star projection <*> bounded by a sealed hierarchy -
KT-48085Kotlin/Native: LLD removes live code with--gc-sectionswhen producing DLL -
KT-69164Native: use lld from bundled LLVM distribution when compiling on Windows for a MinGW target -
KT-74081Context parameters: implicit call resolves to extension when there is a context -
KT-74682Implement internal type exposure via parameter bounds deprecation postponement -
KT-74556K2: "IAE: class KtDestructuringDeclaration is not a subtype of class KtNamedDeclaration for factory REDECLARATION" with two non-local destructuring declarations -
KT-73146Context parameters CLI & diagnostics -
KT-72104Consider enabling check for unbound symbols in JVM before lowerings -
KT-74568Synthetic nested classes missing JVM attributes -
KT-73703[Native] Move KonanIrLinker toserialization.nativemodule -
KT-61175K2: FirReceiverParameter does not extend FirDeclaration -
KT-73961'lateinit is unnecessary' on transient properties should not be reported for serializable classes -
KT-73858Compose / iOS: NullPointerException on building -
KT-62953JVM IR: UseSimpleNamedCompilerPhaseinstead ofNamedCompilerPhase -
KT-72929Consider caching typealiased constructor symbols created by TypeAliasConstructorsSubstitutingScope -
KT-74459K2: false positive MISSING_DEPENDENCY_CLASS for types inside default argument -
KT-73705[Native] Decouple native caches support from KonanIrLinker and KonanPartialModuleDeserializer -
KT-74091K2:@JvmOverloads-produced overloads have generated line number table -
KT-69754Drop -Xuse-k2 compiler flag -
KT-73352K2: false negative ARRAY_EQUALITY_OPERATOR_CAN_BE_REPLACED_WITH_EQUALS -
KT-72962Consider enabling ConsiderForkPointsWhenCheckingContradictions LF earlier -
KT-73027IllegalStateException: Annotation argument value cannot be null: since -
KT-74242Freeze onrunCatchingcall infinallyblock inside SAM conversion -
KT-29222FIR: consider folding binary expression chains -
KT-73760Cannot implement two Java interfaces with@NotNull-annotated type argument and Kotlin's plain (nullable) type parameter -
KT-58933Applying suggested signature from WRONG_NULLABILITY_FOR_JAVA_OVERRIDE leads to red code -
KT-70507Should parentheses prevent from plus/set operator desugaring? -
KT-67520Change of behaviour of inline function with safe cast on value type -
KT-67518Value classes leak their carrier type implementation details via inlining -
KT-72305K2: Report error when using synthetic properties in case of mapped collections -
KT-71226K2 Evaluator: Code fragment compilation with unresolved classes does not fail with exception -
KT-70233Implement a deprecation error for FIELD-targeted annotations on annotation properties -
KT-67517Value class upcast to Any leaks carrier type interfaces -
KT-72814FIR: don't use function references in FirThisReference -
KT-73153K2: Standalone diagnostics on type arguments are not reported -
KT-73011K2: Allow overloads resolution for callable references based on expected type variable with constraints -
KT-70139Remove dependencies of debugger on K1 and old JVM backend -
KT-69223Drop parallel lowering mode in JVM backend -
KT-7461Forbid using projection modifiers inside top-level Array in annotation's value parameter -
KT-53804Restore old and incorrect logic of generating InnerClasses attributes for kotlin-stdlib -
KT-52774Resolve unqualified enum constants based on expected type
Compose compiler
New features
-
5f7e5d1Enabled PausableComposition feature flag by default -
e49ba7aEnabled OptimizeNonSkippingGroups feature flag by default
Fixes
-
b/420729503Avoid copying@Deprecatedannotations on Compose compiler stubs -
b/417412949Emit fake line number forskipToGroupEndbranch -
b/412584977Fix false positive for overriding open functions from older dependencies -
b/409238521Fix crash when searching for ComposableLambda::invoke function on JS -
b/408752831Fix early return with value fromkeygroups -
b/388505454Treat context parameters the same way as extension receiver -
b/408013789Add missing return for the default function wrappers -
b/405541364Realize coalescable children in the body ofkeycall -
b/305035807Add support for@Composablefunction references with K2 -
b/401484249Generate a group aroundArrayconstructor call -
b/400380396Fix missingendMovableGroupcall with early return inkeyfunction -
b/397855145Fix "Unknown file" error in target annotation inference -
b/274898109Fix off-by-one error when calculating changed arg count for lambdas -
b/377499888Allow restarting overridden functions in a final class -
b/393400768Use -1 for.changedcall if nullable enum parameter isnull -
b/390151896Fix default arguments with varargs in@Composablefunctions -
b/388030459,b/377737816Prevent usage of transitive captures in lambda memoization -
b/310004740Check vararg parameter length in skipping logic -
b/367066334Add diagnostic to restrict@Composableannotation to function types only -
b/388505454Change order of $changed bits with context parameters -
CMP-7873Native build fails with "e: Compilation failed: Exception during generating code for following declaration"
IDE
-
KT-54804Generate synthetic functions for annotations on properties in light classes
IR. Actualizer
-
KT-70907Actualize fake override symbols in Ir Actualizer
IR. Inlining
Fixes
-
KT-76145Enhance error message about poisoned KLIBs in KLIB-based compilers -
KT-70916IR: Report errors on exposure of private types in non-private inline functions -
KT-73155MoveMappingfromLoweringContextback toCommonBackendContext -
KT-76186[IR] Sanitize deserialized IR dump of anonymous classes -
KT-75788IR inliner: Serialize preprocessed inline functions in a separate place inside KLIBs -
KT-71416Perform IR-level visibility diagnostics for inline functions after the first phase of inlining -
KT-76224[IR][Inliner] Dumb file is unsuported in IrSymbolBase.getDescriptor() -
KT-75793IR inliner: Stop injecting the deserialized function body to LazyIR inline function -
KT-75791IR inliner:NonLinkingIrInlineFunctionDeserializershould load inline functions from a separate location in a KLIB -
KT-73708Use some marker in KLIBs produced with IR inliner -
KT-76024[JS][IR Inliner] Partial linkage: No function found for symbol inkotlinpackage -
KT-75733Reorganize execution of the common prefix at 1st phase of compilation -
KT-75986Add an option to theDumpIrTreeOptionsto dump IR signature if available -
KT-75951[IR Inliner] Illegal non-local return reported by the partial linkage engine -
KT-75932Fix a problem with already bound symbol with public IR inline enabled -
KT-64812Investigate and fix remaining owner usages in inliner -
KT-74732IR: Exposure of private type is reported at wrong source location -
KT-76007IR deserialization tests w/ enabled IR inliner: undefined offsets in IrInlinedFunctionBlock.inlinedFunctionSymbol -
KT-74734[Native] Use NativeInliningFacade in new subclass of AbstractFirNativeSerializationTest -
KT-73985KLIB Synthetic Accessors Dump Format: Include local declarations -
KT-72594[JS][Native] Add IrInliningFacade to test runners -
KT-74456SerializedIrDumpHandler: Compare IR dumps with source offsets -
KT-73624[Native] Implement inlining facade -
KT-70370SyntheticAccessorLowering: Turn on mode with narrowing visibility on 1st phase of compilation -
KT-70452OuterThisInInlineFunctionsSpecialAccessorLowering - run it after inlining of private functions -
KT-70451Enable double-inlining in Native & JS backends unconditionally -
KT-69681IR: Report warnings on exposure of private types in non-private inline functions
IR. Interpreter
-
KT-74581SupportIrRich*Referencein IR interpreter
IR. Tree
Fixes
-
KT-73189Migrate compiler sources to new IR parameter API -
KT-77508K/JS and K/Native CompilationException Wrong number of parameters in wrapper -
KT-74331Implement IrElement.copyAttributes as a true attribute map copy -
KT-76600Use a language feature to check error on cross-file IrGetField operations generated by compiler plugins -
KT-75628IR validator: Forbid IrExpressionBody for IrFunction -
KT-75679Extract commoninvokeFunctionin IrRichCallableReference -
KT-74799[Native][IR] Excessive FUNCTION_INTERFACE_CLASS after deserialization -
KT-71138Report error on cross-file IrGetField operations generated by compiler plugins -
KT-75196[IR] Make startOffset and endOffset mutable -
KT-73206Extract common parts from new IrRichFunctionReference/IrRichPropertyReference nodes -
KT-73190Migrate common backend sources to new IR parameter API -
KT-73225Migratecompiler.ir.serialization.commonto new IR parameter API -
KT-73220Migratecompiler.ir.treeto new IR parameter API -
KT-75189Add an IR validation for the correspondingPropertySymbol -
KT-74275Adjust IR dump format for context parameters & new parameter API -
KT-74269Drop IrElementVisitor, IrElementVisitorVoid and IrElementTransformer interfaces -
KT-72739Create a lowering to replace old callable reference nodes with new ones -
KT-73120Get rid ofIrclass -
KT-73045Fix inconsistency between shapes of IR calls vs callee -
KT-69714[IR] Remove IrErrorDeclaration -
KT-73609Tests: Implement DeserializerFacade for Kotlin/Native -
KT-73813Implement tests for all IR validator checkers -
KT-73171Choose the approach for testing IR serialization/deserialization wrt IR inliner -
KT-73430[IR] Get rid of SymbolFinder usages outside ofSymbolshierarchy -
KT-74455IR dump: Support dumping source offsets -
KT-73433[IR] Get rid of some symbols lookup methods
JVM. Reflection
-
KT-75505Reflection: use kotlin-metadata-jvm to implement class visibility, modality, modifiers, etc -
KT-77663Reflection: java.util.ServiceConfigurationError: "module kotlin.reflect does not declareuses" when using kotlin-reflect in modular mode -
KT-75464Bundle kotlin-metadata-jvm into kotlin-reflect -
KT-71832kotlin.jvm.internal.ClassReference static overhead is 11,060 bytes
JavaScript
New Features
-
KT-31493[Kotlin/JS] Can't put typealias in file marked with JsModule annotation
Performance Improvements
-
KT-74533K/JS: avoid number to char calls in charSequenceGet intrinsic
Fixes
-
KT-77021CompilationException: Encountered a local class not previously collected on inner classes inside anonymous objects -
KT-78073K/JS: KProperty from local delegate changes after another delegate is invoked -
KT-77271KJS / Serialization: "Cannot set property message of Error which has only a getter" -
KT-76235[JS] Extra invalid linetmp_0.tmp00__1 = Options;in testSuspendFunction() -
KT-76234[JS] Extra invalid lineParentin testNested() -
KT-76233[JS] Extra invalid import line in testJsQualifier() -
KT-74839AssociatedObjectKey metadata doesn't survive incremental compilation -
KT-77418KJS: cannot debug with whole-program granularity -
KT-76463KJS:@JsPlainObjectfails in parent count is 8+ -
KT-75606KJS: java.lang.AssertionError: Different declarations with the same signatures were detected -
KT-69591KJS / d.ts: Wrong type of SerializerFactory for abstract classes -
KT-72437KJS. Invalidcopymethod for inherited JSO with type parameters -
KT-57192KJS: "Exported declaration uses non-exportable return type" caused by@JsExportPromise with Unit type -
KT-73226Migrate K/JS to new IR parameter API -
KT-75254KJS: Merge AbstractSuspendFunctionsLowering from Common and JS backends -
KT-76440@JsPlainObjectcompiles broken code when inlining suspend function and non suspend function -
KT-71169@JsPlainObjectcopy produces the wrong type when copied property is nullable in parent interface -
KT-75772KJS: NullPointerException caused by reference of private class with@JsExport -
KT-73363Migratejs-plain-objectsplugin to new IR parameter API -
KT-64927[JS] TypeError when abstract class with override var property extends an exported abstract class with val property -
KT-70623Kotlin/JS: Incremental compilation fails when granularity is changed -
KT-74384Support new callable reference nodes in JS backend -
KT-70652Kotlin/JS:@JsExportdoesn't work with granularity per-file -
KT-71365KJS. File-level export support -
KT-68775Kotlin/JS infinite loop for exception message override that calls super.message -
KT-42271K/JS: isInitialized for not-lateinit property isn't marked as error as in JVM project -
KT-70664Extending a@JsPlainObjectinterface with a generic type parameter fails with a compile error -
KT-71656K2 JS: "IllegalStateException: Class has no primary constructor: kotlin.ULong" -
KT-42305KJS / IR: "Class constructor is marked as private"@JsExportproduces wrong TS code for sealed classes -
KT-52563KJS / IR: Invalid TypeScript generated for class extending base class with private constructor
Klibs
New Features
-
KT-72296Use specialized signatures for serialized local fake overrides
Fixes
-
KT-78168K/N: "IndexOutOfBoundsException: Index 3 out of bounds for length 3" for iOS build with Kotlin 2.2.0-RC2 -
KT-74635KLIBs: Change call serialization scheme to store all arguments in a single list -
KT-76061Add option for suppress warning of missing no-existent transitive klib dependencies -
KT-70146[KLIB Resolve] Don't fail on nonexistent transitive dependency -
KT-75624Don't fail on an attempt to deserialize "unknown" IrStatementOrigin and IrDeclarationOrigin -
KT-55808Support metadata version checks for klibs in the compiler -
KT-56062Support-Xmetadata-versionfor KLIB-based compilers -
KT-76158Drop "description" from local signatures -
KT-75749KLIB: Fail with error on attempt to serialize/deserialize SpecialFakeOverrideSignature -
KT-75941[IR Inliner] Abstract function is not implemented in non-abstract anonymous object -
KT-75867The CLI argument -Xabi-version allows versions with multiple 0 and -0 -
KT-75192KLIB reader tends to extract files from the KLIB archive to a temporary directory even when this is not needed -
KT-75013Make klib reader more flexible: allow empty directories to be omitted -
KT-75680KLIB: Drop obsolete IrPerFileLibraryImpl & IrPerFileWriterImpl -
KT-73779[Native] Context parameters: extension receiver is preferred over context parameters -
KT-65375Clean-up the logic for serialization of error types in metadata and in IR -
KT-73826DeduplicateIrFileEntrythat is serialized insideIrInlinedFunctionBlock -
KT-75091Droptargets/$target_name/kotlindirectory from klibs -
KT-74352API4ABI: Fix representation of context parameters -
KT-71007Align KLIB ABI version with the language version -
KT-73672Bump KLIB ABI version in 2.2.0 -
KT-74080API4ABI: Adapt API for value parameter kinds -
KT-74396Support context parameters in klibs -
KT-72931Support new callable reference nodes in KLIB [de]serializer
Language Design
New Features
-
KT-2425Multidollar interpolation: improve handling of $ in string literals -
KT-1436Support non-local break and continue -
KT-13626Guard conditions in when-with-subject -
KT-54206Support local contextual functions
Fixes
-
KT-53673Support@DslMarkerannotations on contextual receivers -
KT-73557Allow refining expect declarations for platform groups -
KT-72417Annotation with target RECORD_COMPONENT cannot be used on@JvmRecorddata class components -
KT-67977Compile results of annotations assigned to JvmRecord properties as in Java -
KT-73502Context parameters: it is not possible to declare local function with a context -
KT-73632Expect class redeclaration is allowed -
KT-70002[LC] Forbid using projection modifiers inside top-level Array in annotation's value parameter
Libraries
New Features
-
KT-76163K/N: Hide or remove CreateNSStringFromKString/CreateKStringFromNSString -
KT-70456Base64: Support lineLength parameter for Mime -
KT-76394kotlin.time.TimeSource.asClock missing -
KT-31857Provide easy way to retrieve annotations for kotlinx-metadata -
KT-76528Instant.parseOrNull -
KT-74804Add@MustUseValueand@IgnorableValue/@Discardableto kotlin-stdlib -
KT-74422KotlinWebsiteSampleRewriter should filter individual imports from samples package
Performance Improvements
Fixes
-
KT-72138Stabilize experimental API for 2.2 -
KT-76831Atomic types: inconsistent behavior on JS and Wasm targets -
KT-76795RecursiveDeletionTest.deleteRelativeSymbolicLink fails on Windows for unprivileged users -
KT-75290kotlin-metadata: deprecate hasAnnotations flag, add JVM-only hasAnnotationsInBytecode instead -
KT-76193Common Atomics: 'AtomicArray.compareAndSetAt' and 'compareAndExchangeAt' docs incorrectly suggest they use==when actually they use=== -
KT-54077Consider using SecureDirectoryStream in deleteRecursively even when Path.parent is null -
KT-72866Standard library functions to work with context parameters -
KT-76743Add kotlin-scripting-jvm to projectsUsedInIntelliJKotlinPlugin list -
KT-72483Clean up redundant stdlib code for Kotlin 2.2 -
KT-76385Remove suppression from functions to work with context parameters -
KT-75337Remove suppress annotations from@IgnorableReturnValue -
KT-72137Review deprecations in stdlib for 2.2 -
KT-75491Non intuitive work of 'in' (contains) with String range -
KT-75933Update readLine's KDoc to suggest alternative functions -
KT-46360Type inference fails to infer type for sumOf call with integer literal: "Overload resolution ambiguity TypeVariable(T)) -> Int / Long" -
KT-73590Samplify string.split -
KT-75759Add the serializer for kotlin.time.Instant to the list of standard serializers -
KT-71628Review deprecations in stdlib for 2.1 -
KT-73726A link from shuffle's KDoc is not rendered properly -
KT-74173The sample code oflazyon stdlib can not run on playground due to "samples" package import -
KT-50081AbstractList sublist leads to StackOverflow
Native
-
KT-76992Native: update llvm for windows targets -
KT-56107Support Enum.entries for C/ObjC interop enums -
KT-76552LLVM Update: rebase the LLVM branch -
KT-76662LLVM 19 update: documentation -
KT-76560LLVM Update: investigate changes in filterStdargH test -
KT-76283LLVM Update: pass all tests -
KT-74377Kotlin Native: release executable crashes with error 139 -
KT-75829LLVM Update: port K/N on LLVM 19 -
KT-76280LLVM Update: benchmarksAnalyzer build failed -
KT-70202Xcode 16 Linker fails with SIGBUS
Native. Build Infrastructure
-
KT-77349Kotlin/Native: default cache for stdlib is unused
Native. C and ObjC Import
-
KT-75598Native: fix samples/objc test -
KT-76551LLVM Update: investigate CXFile equality problem further -
KT-75781Xcode 16.3: Fix cinterop tests failing with fatal error: could not build module '_stdint' -
KT-74549Native: replace clang_Type_getNumProtocols/clang_Type_getProtocol with standard libclang functions
Native. Platforms
-
KT-74702Deprecate Windows 7 support
Native. Runtime
-
KT-71534Native: Support Latin-1 encoded strings at runtime -
KT-67741Kotlin/Native: Unify SpecialRef handling
Native. Runtime. Memory
-
KT-74831Kotlin/Native: investigate mmap usage in custom allocator -
KT-74432Native: add an option to allocate everything in SingleObjectPage -
KT-74975Enable CMS by default in Swift export -
KT-60928Kotlin/Native: refactor allocator code -
KT-50291Kotlin/Native: remove dependency of mm on gc implementation
Native. Swift Export
-
KT-75166Support export of platform libraries types in Swift export -
KT-75079Swift export: add dependency from sir-compiler-bridge to Analysis API -
KT-72413Swift Export: potential memory leak when best-fitting class is different from the formal type -
KT-72107Remove IntoSingleModule stratagy
Tools. Ant
-
KT-73116Deprecate Ant support
Tools. BCV
-
KT-75686Improve DSL for BCV in KGP -
KT-76129Abi validation filtering functionality for included classes doesn't work -
KT-75999ABI validation filter doesn't apply excluded kotlin files -
KT-75981ABI validation filter not applying excluded classes without package names -
KT-71168Implement a prototype of ABI Validation in Kotlin Gradle Plugin
Tools. Build Tools API
-
KT-76455BTA: Compilation is always non-incremental if BTA API >= 2.2.0 is used together with BTA impl < 2.2.0 -
KT-76060BTA: Java sources passed for IC may fail compilation in non-incremental mode -
KT-74041Build Tools API: Lower level or remove compiler arguments log
Tools. CLI
New Features
-
KT-73606Provide a unified interface for managing the reporting of compiler warnings -
KT-24746Provide ability to exclude specific warnings from compiler option Werror (all warnings as errors) -
KT-18783Option to treat a specific compiler warning as an error -
KT-76095Add JVM target bytecode version 24 -
KT-73007Add stable compiler argument -jvm-default instead of -Xjvm-default
Performance Improvements
-
KT-75641kotlinc -help spends almost 1 second on Usage.render()
Fixes
-
KT-77445UNRESOLVED_REFERENCE when importing classes from kotlin-stdlib -
KT-75300Lenient compiler mode which generates stubs for missing actuals -
KT-76829UnsupportedOperationException when reenabling a taking place warning with -Xwarning-level -
KT-75588[2.1.20-RC] "was compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler" warnings despite using the same compiler version -
KT-74663kotlinc-js CLI: not providing -ir-output-dir results in NullPointerException -
KT-75967Implement generation of CLI arguments in compiler using new single representation -
KT-75966Declare all existing CLI arguments using the new DSL -
KT-76498Implement JSON dumper for performance stats -
KT-75970Extract all non-trivial logic fromCommonCompilerArgumentsand its inheritors -
KT-73595Kapt.use.k2=true is ignored silently for language-version 1.9 or less -
KT-75043Migrate Metadata compilation pipeline to the phased structure -
KT-75113TEST_ONLY LanguageFeature doesn't abort the compilation
Tools. CLI. Native
-
KT-69485Native: remove adding $llvmDir\bin to PATH on Windows
Tools. Commonizer
-
KT-74623Drop metadata version check from KLIB commonizer
Tools. Compiler Plugin API
-
KT-74640[FIR] Support settingsourcein declaration generators
Tools. Compiler Plugins
Fixes
-
KT-76162"IllegalStateException: No mapping for symbol: VALUE_PARAMETER INSTANCE_RECEIVER" after updating to 2.1.20 -
KT-61584[atomicfu]: prohibit declaration of AtomicReference to the value class in the compiler plugin -
KT-70982Deprecate declaration of atomic properties marked with@PublishedApiwith error -
KT-73367Migrate compose plugin to new IR parameter API -
KT-76429Migrate kotlin-dataframe plugin to new IR parameter API -
KT-75263PowerAssert: no additional info is displayed for 'when' with subject -
KT-75614PowerAssert: handling of exceptions doesn't work inside assert function -
KT-75264PowerAssert: the diagram for try-catch with boolean expressions isn't clear -
KT-75663PowerAssert: 'contains' result for strings is displayed under the first parameter instead of 'in' -
KT-73897PowerAssert: Implicit argument detection is brittle in a number of cases -
KT-74315Kotlin Lombok: "Unresolved reference" on generating@Builderfor static inner class where outer class is also using@Builder -
KT-72172File Leak occurring in Kotlin Daemon -
KT-75159Compose: Missing 'FunctionKeyMeta' annotation on lamdas declared in non-composable function -
KT-72877Power-Assert should provide IrExpression transformation API -
KT-73871PowerAssert: Comparison via operator overload results in confusing diagram -
KT-73898PowerAssert: Operator calls with multiple receivers incorrectly aligned -
KT-73870PowerAssert: Object should not be displayed
Tools. Compiler plugins. Serialization
-
KT-49632Provide diagnostic when custom serializer for generic type does not have required constructor signature ( ISE Null argument in ExpressionCodegen for parameter VALUE_PARAMETER)
Tools. Gradle
New Features
-
KT-75823Resources bundle with XCFrameworks for iOS -
KT-73418Gradle '--warning-mode' value should affect Gradle plugin diagnostics -
KT-73906Improve ToolingDiagnostic CLI rendering -
KT-73285Integrate Gradle Problem API with KGP diagnostics -
KT-61649Add Gradle compiler option for jvm-default -
KT-68659Collect reported Kotlin Gradle Plugin diagnostics into one HTML/Text file report instead of writing it to log
Fixes
-
KT-75188Groovy plugin breaks access to internal members of test friendPaths classes in kotlin compilation -
KT-54110Change deprecation level to ERROR for kotlinOptions DSL -
KT-74277KGP / FreeBSD: "TargetSupportException: Unknown operating system: FreeBSD" during the build -
KT-75820Gradle: "ClassNotFoundException: intellij.util.containers.Stack" while parsing compilation warnings with IN_PROCESS execution strategy -
KT-64991Change deprecation level to error for KotlinCompilation.source -
KT-75107Add Gradle property to use new FIR IC runner -
KT-66133Finalize resolution strategy for resources and remove the one that is unused -
KT-59632KotlinCompileTool.setSource() should replace existing sources -
KT-62963Remove "kotlin.incremental.useClasspathSnapshot" property -
KT-76137Compatibility with Gradle 8.14 release -
KT-76797KGP: StdlibDependencyManagementKt.configureStdlibVersionAlignment() triggering eager configuration realization -
KT-76282Add missing Android Gradle plugin versions in tests -
KT-77011Update build regression benchmarks for 2.2.0 release -
KT-76138Compile against Gradle API 8.14 -
KT-76139Run integration tests against Gradle 8.14 -
KT-74007Not all the DSL features related to kotlinOptions are deprecated -
KT-77288Using 'KotlinJvmOptions' is an error - Gradle sync issue when using 2.2.0-Beta2 with Android Gradle Plugin -
KT-74887Compatibility with Gradle 8.13 release -
KT-73682Compatibility with Gradle 8.12 release -
KT-77035A compiler diagnostic isn't reported when its severity is set to warning with Gradle -
KT-70620Raise to error deprecation for KotlinCompilationOutput#resourcesDirProvider -
KT-68597Update KGP deprecations before 2.2 -
KT-68325Add to Compiler Types DSL exceptions message possible ways of a solution -
KT-76951'distribution-base' plugin is only applied in Gradle 8.13 -
KT-73142Kotlin Gradle plugin: Remove usage of Gradle's internal ExecHandleBuilder -
KT-73968KotlinDependencyManagement tries to mutate configuration after it was resolved -
KT-74890Run Gradle integrations test against Gradle 8.13 release -
KT-74889Compile against Gradle 8.13 API -
KT-76052Support Gradle 8.13 for Problems API -
KT-73684Run integration tests against Gradle 8.12 -
KT-76377Add integration tests for Problems API -
KT-74551Improve KGP-IT withDebug for tests with environment variables -
KT-74717Test publication with dependency constraints -
KT-75164Run Gradle incremental compilation tests with FIR runner -
KT-72694Accessing Task.project during execution is being deprecated in Gradle 8.12 -
KT-76374Investigate and fix failing tests with configuration cache in KotlinDaemonIT: testDaemonMultiproject and testMultipleCompilations -
KT-76379Gradle: KotlinGradleFinishBuildHandler does not perform cleanup on configuration cache reuse -
KT-61911Gradle: make KGP to depend on fixated version of stdlib -
KT-76026[ToolingDiagnostic] Gradle warning mode=fail: no emoji replacement, title color unchanged -
KT-76025ToolingDiagnostic with FATAL Severity: ANSI escape codes are not rendered properly in the Build tool window in IntelliJ IDEA -
KT-70252Gradle: remove Intellij dependencies from KGP runtime -
KT-74333improve ToolingDiagnosticBuilder -
KT-73683Compile against Gradle API 8.12 -
KT-75187Make KotlinToolingDiagnostics internal -
KT-75568Do not use env variables registered as CC inputs -
KT-73842Gradle: AGP failing tests with "Failed to calculate the value of property 'generalConfigurationMetrics'" using KGP -
KT-75262Gradle test-fixtures plugin apply order breaks the project -
KT-75277FUS statistics: 'java.lang.IllegalStateException: The value for this property cannot be changed any further' exception is thrown during project import -
KT-75026Corrupted NonSynchronizedMetricsContainer in parallel Gradle build -
KT-73849Categorize ToolingDiagnostics -
KT-74462Flaky Kotlin Gradle Plugin Tests: IsInIdeaEnvironmentValueSource$Inject not found -
KT-72329Consider bumping apiVersion for projects with compatibility setup -
KT-74772ToolingDiagnostic: title is not displayed on Windows -
KT-74485BuildFinishedListenerService is not thread-safe -
KT-74639Executable binaries for JVM test cannot be created unless an additional suffix is set in Groovy -
KT-72187Gradle tests are using incorrect Kotlin/Native distribution -
KT-57653Explicit API mode is not enabled when free compiler arguments are specified in Gradle project -
KT-51378Gradle 'buildSrc' compilation fails when newer version of Kotlin plugin is added to the build script classpath
Tools. Gradle. Compiler plugins
-
KT-58009BaseKapt.annotationProcessorOptionProvidersshould be aList<CommandLineArgumentProvider>instead ofList<Any> -
KT-61928Clarify parameter types in KaptArguments and KaptJavacOption
Tools. Gradle. JS
-
KT-74859Gradle configuration cache issues related to RootPackageJsonTask -
KT-70357Remove JS/Dce deprecated Gradle DSL -
KT-71217KJS: 'Per-file' "Module not found: Error: Can't resolve void.mjs" -
KT-77119KJS: Gradle: Setting custom environment variables in KotlinJsTest tasks no longer works -
KT-74735KGP uses Gradle internalCompositeProjectComponentArtifactMetadata -
KT-71879Notice of upcoming deprecation for Boolean 'is-' properties in Gradle Groovy scripts -
KT-75863Wasm/JS: Deprecate phantom-js for Karma -
KT-75485KJS: "Module not found: Error: Can't resolve 'style-loader' and 'css-loader'" in 2.1.20-RC -
KT-74869KJS:jsBrowserProductionWebpackdoes not minify output with 2.1.20-Beta2
Tools. Gradle. Multiplatform
New Features
-
KT-60623DeprecatepublishAllLibraryVariantsin kotlin-android
Fixes
-
KT-75161Deprecate commonization parameters in KGP with an error -
KT-74005Implement a prototype of Unified Klib support in Kotlin Gradle Plugin -
KT-61817Remove support for Legacy Metadata Compilation with support of Compatibility Metadata Variant -
KT-71634KGP: Remove KotlinTarget.useDisambiguationClassifierAsSourceSetNamePrefix and overrideDisambiguationClassifierOnIdeImport -
KT-77404The kotlin-stdlib and annotations are missing from commonTest dependencies with 2.2.0-Beta1 -
KT-62643Increase DeprecationLevel to 'Error' on deprecated 'ExtrasProperty.kt' (Kotlin 2.2) -
KT-75605Dependency resolution fails in commonTest/nativeTest source sets for KMP module when depending on another project due to missing PSM -
KT-71698Remove preset APIs -
KT-68015Remove legacy KMP flags -
KT-74727Dependency resolve from a single target KMP module to another kmp module fails on non-found PSM -
KT-75808KGP: MPP with jvm target and Gradle java-test-fixtures is broken -
KT-59315Improve the readability of KGP diagnostics in CLI build output -
KT-58231Kotlin Gradle Plugin: set deprecation level to Error for KotlinTarget.useDisambiguationClassifierAsSourceSetNamePrefix and overrideDisambiguationClassifierOnIdeImport -
KT-66423Configuration cache false recalculation because of Kotlin Native downloading during the execution phase -
KT-74888Use 'distribution-base' plugin in KMP/JVM -
KT-76659Write proper diagnostics for Uklib checks -
KT-70493Improve gray-box testing experience in KGP-IT -
KT-71608Remove 'android()' target -
KT-75512Maven-publish: ArtifactId is not correct inpomfile with customizedwithXml -
KT-72203Swift Export: Unclear failure for invalid module name -
KT-74278KSP tasks don't trigger a K/N distribution downloading -
KT-74669Executable binaries for JVM: a jar generated by jvmJar task isn't added to the build/install/testAppName/lib directory -
KT-69200Module 'intellij.kotlin.gradle.multiplatformTests' transitively depends on K1/K2 implementation -
KT-71454Remove not compatible with Project Isolation PomDependenciesRewriter -
KT-73536Enable kmp isolated projects support for kotlin-test and patch PSM.json
Tools. Gradle. Native
-
KT-77067Kotlin Gradle plugin with the configuration cache passes all platform libraries to the compiler when compiling a binary for the first time -
KT-74953Deprecate kotlinArtifacts with a warning -
KT-71069RemovekonanVersionfrom CInteropProcess -
KT-75171Provide custom freeCompilerArgs to Swift Export's link task -
KT-74591HostManager.isMingw isLinux and isMac are not accessible in groovy scripts -
KT-65692Remove Kotlin Native Performance plugin -
KT-74403:commonizeNativeDistribution fails when configured native targets cannot be built on machine
Tools. Gradle. Xcode
-
KT-66262Deprecate and remove support for bitcode embedding from the Kotlin Gradle plugin
Tools. Incremental Compile
-
KT-62555Wrong ABI fingerprint for inline function containing a lambda -
KT-75883Follow-up: switch from INSTANCE heuristic to outerClass chain -
KT-75276Test IC issues with first-round failures that might be fixed by Fir runner -
KT-76041Make lenient mode work with IC -
KT-75155Split HistoryFileJvmIncrementalCompilerRunner and the current one -
KT-74628Incremental compilation runner does not check compiler exit code before mapping sources to classes
Tools. JPS
-
KT-60914IC misses dependency to recompile when named kt file with JvmField instructed property was replaced with an object with the same name -
KT-76495JPS: delegated Maven builds use embeddable version of kotlin-serialization compiler plugin with non-embeddable Kotlin compiler -
KT-76461Fix "compilation of typealias does not check for clashes" for JPS -
KT-75917Unused imports may lead to inc compilation failure -
KT-73379Review the usage of JavaBuilder.IS_ENABLED inside the KotlinBuilder JSP builder -
KT-63707JPS: "Multiple values are not allowed for" caused by Compose
Tools. Kapt
-
KT-75936K2 KAPT: unsupported FIR element kinds in constant evaluation -
KT-64385K2: Enable K2 KAPT by default -
KT-76546Kapt / CLI: ""compile" mode is not supported in Kotlin 2.x" with -version flag -
KT-75942K2 KAPT: underscore not allowed here -
KT-40485-Xjvm-default=all causes private interface methods to be generated in JVM target < 9 which is not supported in annotation processing -
KT-75202K2 kapt: mapped type class literal is converted incorrectly -
KT-70797Remove obsolete K2 kapt implementation based on Analysis API
Tools. Maven
-
KT-73012Migrate Kotlin Maven plugin to the Build Tools API -
KT-77036Kotlin Maven plugin: ClassNotFoundException com.google.common.base.Joiner with compiler plugins in debug mode -
KT-61285Remove multiplatform "support" from Maven Plugin
Tools. Performance benchmarks
-
KT-75563Fix crash on kotlin compiler server user project related to performance measurements
Tools. REPL
Fixes
-
KT-75632Contunue deprecation of the REPL built intokotlinc -
KT-76507[K2 Repl] Delegated properties are not visible in the next snippet -
KT-76508[K2 Repl] Annotations on property accessors are not resolved -
KT-75672[K2 Repl] Serialization plugin crashes compiler backend -
KT-76009[K2 Repl] Kotlin-specific imports does not work if dependency is added to the classpath after 1st snippet -
KT-75580[K2 Repl] Cannot access snippet properties using Kotlin reflection -
KT-75616[K2 Repl] Sealed hierarchies causes a FileAnalysisException -
KT-75593[K2 Repl] Custom Delegates crash code gen -
KT-75607[K2 Repl] ScriptingConfiguration.jvm.jvmTarget is not respected -
KT-74607[K2 Repl] Lambda statement crashes code generation -
KT-74615[K2 REPL] Anonymous objects crash code generation -
KT-74856[K2 Repl] Snippet class files are missing Kotlin metadata -
KT-74768[K2 Repl] refineConfiguration does not update the classpath correctly -
KT-74593[K2 Repl] defaultImports does not work in ScriptCompilationConfiguration
Tools. Scripts
-
KT-75589Scripts: "IndexOutOfBoundsException in jdk.internal.util.Preconditions.outOfBounds" when trying to extend a class which uses global variable -
KT-76424Dependencies in main.kts not working with 2.1.20 -
KT-76296Kotlin script compiler crashes when secondary constructor calls a function -
KT-76430Migrate scripting plugin to new IR parameter API -
KT-74004"Evaluate expression" fails in scripts
Tools. Wasm
-
KT-76161Wasm: "export startUnitTests was not found" after updating to Kotlin 2.1.20 -
KT-73398K/Wasm: Separate from JS NPM infrastructure -
KT-76948Wasm: Rename kotlinBinaryenSetup and kotlinD8Setup -
KT-74840Wasm: Binaryen setup per project -
KT-76657K/Wasm: Composite build does not work with wasm tasks -
KT-76656K/Wasm: Change NPM project name of wasm projects -
KT-76587Wasm lock check failure says to run the JS lock upgrade -
KT-76330K/Wasm: update binaryen to 123 or newer -
KT-74480Projects using Compose don't run in Android Studio started from 2.1.20- Kotlin version
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Renovate Bot