Skip to content

Kotlin 2.0.0-Beta2

Pre-release
Pre-release
Compare
Choose a tag to compare
@KotlinBuild KotlinBuild released this 15 Dec 09:09

Changelog

Analysis. API

Fixes

  • KT-62982 K2: Cannot get a PSI element for 'Enum.values'
  • KT-59732 FirLazyResolveContractViolationException: lazyResolveToPhase(IMPORTS) cannot be called from a transformer with a phase IMPORTS from serialisation plugin
  • KT-61757 K2 IDE: resolution to buitlins does not work for from common module
  • KT-62676 K2 IDE: Reference shortener does not recoginize redundant this references
  • KT-63627 K2 IDE: shorten reference shortens required qualifier
  • KT-62675 K2 IDE: Reference shortener does not recoginize redundant labels
  • KT-63771 fe10: KtNamedClassOrObjectSymbol#isInline does not cover value classes
  • KT-62947 Analysis API: Error while resolving FirPropertyImpl
  • KT-60327 K2 IDE. "IllegalArgumentException: source must not be null" during delegation declaration
  • KT-63700 K2: "FirLazyExpression should be calculated before accessing" in the case of secondary constructor
  • KT-62111 K2 IDE. IllegalArgumentException on for loop with iterator declaration attempt
  • KT-63538 Analysis API: Removing a contract statement via PsiElement.delete() does not trigger an out-of-block modification
  • KT-63694 K1/K2 IDE. "RuntimeException: Broken stub format, most likely version of kotlin.FILE (kotlin.FILE) was not updated after serialization changes" exception on incorrect class name
  • KT-63560 Analysis API: Modifiable PSI tests cannot rely on the cached application environment to allow write access
  • KT-62980 Implement KtFirSimpleNameReference#getImportAlias
  • KT-63130 Analysis API: No receiver found for broken code during commit document
  • KT-60170 K2 IDE: CCE from KtFirCallResolver on invalid code with wrong implicit invoke
  • KT-61783 K2: Analyze 'KtCodeFragment' in a separate session
  • KT-62010 K2: IDE K2: "ConeClassLikeTypeImpl is not resolved to symbol for on-error type"
  • KT-62957 Analysis API: NullPointerException on call resolution when builtins are not available
  • KT-62899 K2 IDE. IDE ignores @Suppress annotation for errors
  • KT-62935 Analysis API: kotlin.Cloneable should not be available in Kotlin/Native sources
  • KT-62910 Analysis API: create AbstractFirPsiNativeDiagnosticsTest for LL FIR
  • KT-63096 K2: Analysis API: KotlinAnnotationsResolver for IDE is created with incorrect scope
  • KT-63282 K2 Script: annotation arguments phase should resolve propagated annotations
  • KT-63223 Analysis API: reference to declarations with kotlin* package are not resolved
  • KT-63195 AA: incorrect results from KtTypeProvider#getReceiverTypeForDoubleColonExpression

Analysis. Light Classes

  • KT-63552 Symbol Light Classes don't support arrayOf and similar without parameters in property initializers and default parameter values
  • KT-63486 SLC: a lot of RAM is allocated in org.jetbrains.kotlin.asJava.LightClassUtil.isMangled

Backend. Wasm

  • KT-62863 Execution failed for task ':kotlinx-serialization-properties:wasmJsD8Test' in serialization in the K2 QG

Compiler

New Features

  • KT-22004 Allow to resolve CONFLICTING_OVERLOADS with Deprecated(HIDDEN)
  • KT-61955 Support more wider actual member visibility, if the expect member is effectively final

Fixes

  • KT-63695 JVM: Don't use plugin extensions when compiling code fragment
  • KT-59903 K2: Disappeared DELEGATE_SPECIAL_FUNCTION_NONE_APPLICABLE
  • KT-62961 K2 / KMP: NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS with expect enum class and typealias
  • KT-59369 K2: Missing BUILDER_INFERENCE_STUB_RECEIVER
  • KT-53749 Support builder inference restriction in FIR
  • KT-59390 K2: Missing BUILDER_INFERENCE_MULTI_LAMBDA_RESTRICTION
  • KT-59887 K2: Disappeared ACTUAL_MISSING
  • KT-62885 Introduce a language feature entry for expect actual classes for easier configuration of MPP projects
  • KT-62589 K2: Investigate need of non-nullable IdSignature in Fir2IrLazyDeclarations
  • KT-63329 K2: difference in SAM-conversion casts generation
  • KT-64062 K2 IDE. NPE on typing nullable parameter in return
  • KT-63761 K2: False positive "Unresolved reference" caused by object's parameter in enum class which is passed as annotation parameter
  • KT-55252 Backend Internal error during psi2ir in native compile tasks (NPE in getKlibModuleOrigin)
  • KT-50453 Improve builder inference diagnostics with type mismatch due to chosen inapplicable overload
  • KT-56949 K2: Builder inference violates upper bound
  • KT-64028 K2: Investigate questionable condition in FirBuilderInfernceSession
  • KT-60031 K2: Introduced NO_ACTUAL_CLASS_MEMBER_FOR_EXPECTED_CLASS
  • KT-63646 K2: "IllegalStateException: Return type of provideDelegate is expected to be one of the type variables of a candidate, but D was found"
  • KT-59881 K2: Disappeared UNSUPPORTED
  • KT-64136 K2: NSME with Anvil compiler plugin
  • KT-63448 K2: CONFLICTING_INHERITED_JVM_DECLARATIONS with @JvmField
  • KT-63865 K2: "IllegalArgumentException: Failed requirement." caused by lambda parameters with different type in init block
  • KT-62609 K2. Type argument inference changed for object of Java class with several common parents
  • KT-63081 Optimize new native caches: CachedLibraries.computeVersionedCacheDirectory()
  • KT-63580 "AssertionError: access of const val: GET_FIELD" caused by const value and variable with delegation
  • KT-63567 "NoSuchMethodError" on getting value of lazily initialized property by companion's const value
  • KT-63540 Restrict the CONFLICTING_OVERLOADS + DeprecatedLevel.HIDDEN ignore to final callables
  • KT-30369 Smartcasts from safe call + null check don't work if explicit true/false check is used
  • KT-30376 Smartcasts don't propagate to the original variable when use not-null assertion or cast expression
  • KT-30868 Unsound smartcast if smartcast source and break is placed inside square brackets (indexing expression)
  • KT-31053 Nothing? type check isn't equivalent to null check is some places
  • KT-29935 Smartcasts don't work if explicit annotated true/false check is used
  • KT-30903 Smartcast to null doesn't affect computing of exhaustiveness
  • KT-62847 K2: Introduce FIR node for SAM conversion
  • KT-63564 K/Wasm: CompilationException with 2.0.0-Beta1
  • KT-63345 K2: FIR2IR chooses an incorrect type for smartcast in case of SAM conversion
  • KT-63848 ReflectiveAccessLowering does not count arguments of super-calls
  • KT-61920 K2: False negative CONST_VAL_WITH_NON_CONST_INITIALIZER when initializer is Java field
  • KT-63649 K2: Wild card in superclass confuses EXPANSIVE_INHERITANCE checker
  • KT-63569 K2: "IllegalStateException: ?!id:1" caused by private function call
  • KT-63842 K2: some arguments of annotations on local declarations are unresolved
  • KT-63832 K2: missed context during annotation argument resolution for a type alias, init and property receiver
  • KT-62559 KMP, K2: prevent reporting ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT twice in CLI
  • KT-24652 Elvis with 'break' can produce unsound smartcasts in while-true loop
  • KT-28508 Possible unsound smartcast in class initializer
  • KT-28759 No not-null smartcast from direct assignment if it's split into declaration and value assignment
  • KT-28760 No not-null smartcast from direct assignment of this
  • KT-29878 Smartcasts from type check or null check don't work if explicit true check as reference equality is used
  • KT-29936 Smartcasts don't work if comparing with return value of some function and explicit true/false check is used
  • KT-30317 Smartcast doesn't work if smartcast source is used as an operand of the reference equality
  • KT-63071 K2 supports calling functions with the dynamic receiver over Nothing?
  • KT-59896 K2: Disappeared WRONG_ANNOTATION_TARGET
  • KT-56849 Implement K/Wasm K1 diagnostics in K2
  • KT-31636 Expect-actual matching doesn't work for inner/nested classes with explicit constructor using typealiases
  • KT-63361 K2: Expected FirResolvedTypeRef for return type of FirDefaultPropertyGetter(SubstitutionOverride(DeclarationSite)) but FirImplicitTypeRefImplWithoutSource found
  • KT-63377 K2: conflict between type parameter and nested class
  • KT-62913 Convert DEFAULT_ARGUMENTS_IN_EXPECT_ACTUALIZED_BY_FAKE_OVERRIDE to checking incompatibility
  • KT-63550 K2: fake-override in expect covariant override in actual. Move diagnostics from backend to frontend
  • KT-63443 IrFakeOverrideBuilder: ISE "No new fake override recorded" when Java superclass declares abstract toString
  • KT-58933 Applying suggested signature from WRONG_NULLABILITY_FOR_JAVA_OVERRIDE leads to red code
  • KT-63600 K2: Duplicate WRONG_NULLABILITY_FOR_JAVA_OVERRIDE
  • KT-63508 K2: "IllegalArgumentException: Not FirResolvedTypeRef (String) in storeResult" caused by @Deprecated Java function and typo
  • KT-63656 K2: "IllegalArgumentException: Local com/example/ should never be used to find its corresponding classifier"
  • KT-63459 K2: OPT_IN_USAGE_ERROR is absent when calling the enum primary constructor
  • KT-59582 OPT_IN_MARKER_CAN_ONLY_BE_USED_AS_ANNOTATION_OR_ARGUMENT_IN_OPT_IN on an annotation import
  • KT-63732 K1: False positive OUTER_CLASS_ARGUMENTS_REQUIRED inside anonymous object
  • KT-60614 K2: Conflicting INVISIBLE_REFERENCE and UNRESOLVED_REFERENCE reported depending on FIR test for transitive friend module dependencies
  • KT-59983 K2: Disappeared IMPLEMENTATION_BY_DELEGATION_IN_EXPECT_CLASS
  • KT-57044 K2 LL Tests: false-positive 'Overload resolution ambiguity between candidates: [@Override() fun test(): Unit , fun test(): Unit]'
  • KT-58028 K2: False-positive TYPE_PARAMETER_IS_NOT_AN_EXPRESSION
  • KT-62560 K2: KAPT4: annotation @ReplaceWith is missing a default value for the element 'imports'
  • KT-63068 K2 supports typeRef-name labels
  • KT-63642 JVM_IR: don't generate reflective access to getter/setter without property
  • KT-62212 K2: require matching of suspend status for override check
  • KT-63597 JVM_IR: Properly handle type parameters of outer declaration in code fragment
  • KT-61282 K2: Incorrect overridden function for java.nio.CharBuffer.get
  • KT-63317 K2: Disallow generic types in contract type assertions
  • KT-59922 K2: Disappeared CANNOT_CHECK_FOR_ERASED
  • KT-63241 IJ monorepo K2 QG: backward-incompatible compiler ABI change leads to run-time failures of Fleet's kotlinc plugins
  • KT-59988 K2: Disappeared TYPE_ARGUMENTS_NOT_ALLOWED
  • KT-59936 K2: Disappeared ARGUMENT_PASSED_TWICE
  • KT-63522 K2: wrong context for delegated field type
  • KT-63454 Properly check that inline fun is in the same module as callee in IrSourceCompilerForInline
  • KT-59951 K2: Disappeared NO_TYPE_ARGUMENTS_ON_RHS
  • KT-63535 K2: Apply DFA implications for nullable Nothing to both sides
  • KT-62727 K2: Missing JSCODE_UNSUPPORTED_FUNCTION_KIND
  • KT-62726 K2: Missing JSCODE_WRONG_CONTEXT
  • KT-62725 K2: Missing JSCODE_INVALID_PARAMETER_NAME
  • KT-62314 Make usages of JavaTypeParameterStack safe
  • KT-60924 FIR2IR: Get rid of all unsafe usages of IrSymbol.owner
  • KT-57949 FIR: SignatureEnhancement: mutation of java enum entry
  • KT-59908 K2: Disappeared RECURSIVE_TYPEALIAS_EXPANSION
  • KT-62724 K2: Missing WRONG_JS_FUN_TARGET
  • KT-62856 K2: Don't create IR declaration when its symbol is accessed in fir2ir
  • KT-61329 K2: Review for diagnostic messages reported by CLI arguments processing
  • KT-60604 K2: introduced NON_PUBLIC_CALL_FROM_PUBLIC_INLINE, @PublishedApi needed for constants in annotations
  • KT-63286 K2: Top-level properties in scripts are missing initialization checks
  • KT-62711 Incorrect ParsedCodeMetaInfo instances
  • KT-63122 K2: Improve 'EVALUATION_ERROR' messages
  • KT-63164 K2/JVM: compiler codegen crash on invisible property IllegalStateException: Fake override should have at least one overridden descriptor
  • KT-62352 jspecify NonNull annotation seems not supported
  • KT-56614 K2: Incorrect overload resolution with SAM types
  • KT-62783 K2: False positive CAST_NEVER_SUCCEEDS when casting nullable expression to it's non-nullable generic base class
  • KT-47931 FIR DFA: smartcast not working for if (x!=null || x!=null && x!=null) {}
  • KT-62735 K2: Disappeared EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER
  • KT-62733 K2: Disappeared WRONG_EXTERNAL_DECLARATION
  • KT-62734 K2: Disappeared INLINE_EXTERNAL_DECLARATION
  • KT-62618 K2: Fix the ensureAllMessagesPresent test
  • KT-60312 K2: CCE “class [I cannot be cast to class java.lang.Number ([I and java.lang.Number are in module java.base of loader 'bootstrap')” on using IntArray as vararg
  • KT-61362 K2: Properties/fields are missing from system libraries
  • KT-52432 Using the IDE compiled with K2 (useFir) throws VerifyError exception
  • KT-59825 K2: Fix the TODO about wasExperimentalMarkerClasses in FirSinceKotlinHelpers
  • KT-26045 False positive DUPLICATE_LABEL_IN_WHEN for safe calls
  • KT-63094 K2: Exception from fir2ir during conversion data class with property of dynamic type
  • KT-59822 K2: Fix the TODO in FirConstChecks
  • KT-59493 Definitely non-nullable types have type inference issues with extension functions
  • KT-63396 K2: property from companion object are unresolved as an annotation argument in type parameter
  • KT-62925 K2: Disappeared EXPOSED_FUNCTION_RETURN_TYPE for package-private and type args
  • KT-63430 IrFakeOverrideBuilder: VerifyError on calling a function with a context receiver from a superclass
  • KT-62420 K2: Remove ConeClassifierLookupTag from ConeTypeVariableTypeConstructor
  • KT-59998 K2: Disappeared OPT_IN_MARKER_CAN_ONLY_BE_USED_AS_ANNOTATION_OR_ARGUMENT_IN_OPT_IN
  • KT-53308 TYPE_MISMATCH: Contracts on boolean expression has no effect on referential equality to null
  • KT-51160 Type mismatch with contracts on narrowing sealed hierarchy fail to smart cast
  • KT-49696 Smart cast to non-null with inline non-modifying closures sometimes doesn't work
  • KT-46586 SMARTCAST_IMPOSSIBLE when assigning value inside lambda instead of if expression
  • KT-41728 False positive no smart cast with unreachable code after return in if expression
  • KT-57529 K1/K2: "IllegalStateException: not identifier: " with hard keywords in angle brackets
  • KT-59401 K2: Missing ADAPTED_CALLABLE_REFERENCE_AGAINST_REFLECTION_TYPE
  • KT-63147 K2: False negative DSL_SCOPE_VIOLATION when member is annotated with @LowPriorityInOverloadResolution
  • KT-63172 K2: Java vararg setter should not be used as property accessor
  • KT-62306 K2: Compiler internal error for incorrect call on ILT
  • KT-61592 kt57320.kt weird diagnostic range for NO_ACTUAL_FOR_EXPECT
  • KT-60294 K2: lambda inside object capturing this, when not in K1
  • KT-62590 Split expect/actual matcher-checker machinery in two separate components: matcher and checker
  • KT-62120 K2: "NoSuchMethodError: java.lang.String" at runtime on class delegating to Java type
  • KT-36976 FIR: Provide exact smart casting type
  • KT-62628 K2: FirErrorTypeRefImpl doesn't have annotations
  • KT-62447 K2. "Replacing annotations in FirErrorTypeRefImpl is not supported" compiler error when annotation is used as variable type or return type
  • KT-62541 K2: Missed type mismatch error
  • KT-37591 Deprecate cases in FE 1.0 when companion property is prioritized against enum entry

Docs & Examples

IDE

  • KT-55788 [SLC] Declarations with value classes are leaked into light classes

IDE. Gradle. Script

  • KT-60813 Scripts: NoSuchMethodError: 'void org.slf4j.Logger.error(java.lang.String, java.lang.Object)' when dependency uses Slf4j API

IDE. JS

  • KT-61257 Analysis API:"KotlinIllegalArgumentExceptionWithAttachments: Invalid FirDeclarationOrigin DynamicScope" exception on unsupported JS dynamic usage in scope

IDE. Multiplatform

  • KT-45513 Run c-interop generation in parallel during project import
  • KT-63126 K2: Analysis API Standalone: IllegalStateException from Kotlin/Native klib

IDE. Script

  • KT-61267 K2 Scripts: dependency issues

IR. Actualizer

  • KT-62292 K2: Extract IrActualizer into separate module
  • KT-63442 IrFakeOverrideBuilder: ISE "Multiple overrides" error when function signatures differ only in the type parameter upper bound

IR. Interpreter

  • KT-62683 K2: FIR2IR: IrConst*Transformer doesn't evaluate an expression for const val initializer

IR. Tree

  • KT-61970 Refactor IR and FIR tree generators to reuse common logic
  • KT-61703 Drop the dependency on kotlinpoet for IR tree generation
  • KT-63437 IrFakeOverrideBuilder: ISE "Captured Type does not have a classifier" on complex Java hierarchy

JavaScript

Fixes

  • KT-61117 Migrate remaining legacy IC tests to IR
  • KT-63808 compileTestDevelopmentExecutableKotlinJs failed in JsIntrinsicTransformers
  • KT-61523 KJS: Call main function in per-file mode
  • KT-63543 KJS / K2: Exported declaration uses non-exportable return type type: 'kotlin.Unit'
  • KT-63089 KJS / K2 : "IllegalArgumentException: source must not be null " for inner class and interface as type
  • KT-62077 KJS: TypeError: str.charCodeAt is not a function
  • KT-63436 K/JS: Eliminate names for synthetic classes in setMetadataFor()
  • KT-61929 KJS: "IllegalStateException: No dispatch receiver parameter for FUN LOCAL_FUNCTION_FOR_LAMBDA" caused by run function in init block
  • KT-63013 KJS: requireNotNull not working correctly in JS tests with Kotlin 1.9.20
  • KT-63207 KMP / JS: "TypeError: <mangled_name> is not a function" with 1.9.20
  • KT-16981 js: Command line arguments passed to main() are always empty
  • KT-61525 KJS: Test functions are not invoked in per-file mode

Klibs

  • KT-62259 KLIB ABI reader: add information about a backing field to AbiProperty
  • KT-62515 Interop klib of concurrent version is not accepted when building dependent project: "The library versions don't match"

Language Design

  • KT-62138 K1: false positive (?) NO_SET_METHOD for += resolved as a combination of Map.get and plus
  • KT-61573 Emit the compilation warning on expect/actual classes. The warning must mention that expect/actual classes are in Beta

Libraries

  • KT-62346 Sublists of ListBuilder does not correctly detect ConcurrentModification
  • KT-59441 Design reading and writing future versions of Kotlin metadata
  • KT-57922 kotlinx-metadata-jvm does not take into account strict semantics flag
  • KT-63341 K2: JVM StringBuilder has no corresponding members for expected class members
  • KT-51058 Avoid byte array allocation in File.writeText when possible
  • KT-63447 K2: stdlib buildscript error: file included in two modules

Native

  • KT-63789 Native: Incremental compilation problem with compose
  • KT-50547 [Commonizer] K/N echoServer sample fails with multiple "Unresolved reference" errors on Windows

Native. Build Infrastructure

  • KT-63905 Extract ObjC Export Header generation from K/N backend
  • KT-63220 [K/N] Unable to specify custom LLVM distribution

Native. C and ObjC Import

  • KT-63287 [K/N] Create test model for building/executing C-Interop tests
  • KT-63048 K2 ObjC interop: Fields are not supported for Companion of subclass of ObjC type

Native. ObjC Export

  • KT-63153 Native: implement a flag to emit compiler warnings on ObjCExport name collisions

Reflection

  • KT-60708 Reflection: Not supported ) (parentheses in backticks)

Tools. Compiler Plugins

  • KT-53861 K2. Report SERIALIZER_TYPE_INCOMPATIBLE on specific type argument in kotlinx.serialization
  • KT-63086 K2: "Parcelable should be a class"
  • KT-61432 K2 Parcelize. RawValue is not recognized if parameter is annotated via typealias

Tools. Compiler plugins. Serialization

  • KT-63591 K2: "KotlinReflectionInternalError: Could not compute caller for function" on generated internal constructor
  • KT-63570 K2 / Serialization: "Class * which is serializer for type * is applied here to type *. This may lead to errors or incorrect behavior."
  • KT-63402 K2 / Serialization: "SyntheticAccessorLowering should not attempt to modify other files!" caused by sealed base with generic derived class in separate files

Tools. Gradle

New Features

  • KT-61975 Re-purpose kotlin.experimental.tryK2

Performance Improvements

  • KT-63005 Avoid registering KMP related compatibility/disambiguration rules for pure JVM/Android projects

Fixes

  • KT-60733 Allow specify log level for compiler arguments used to compile sources
  • KT-63697 The warning is still presented in terminal after suppressing it with -Xexpect-actual-classes flag
  • KT-63491 Restore access to top-level DSL to configure compiler options in MPP
  • KT-55322 Kotlin daemon: Cannot perform operation, requested state: Alive > actual: LastSession
  • KT-63369 Fix: "The org.gradle.api.plugins.BasePluginConvention type has been deprecated."
  • KT-63368 Fix "The automatic loading of test framework implementation dependencies has been deprecated. "
  • KT-63601 Fetching Gradle compiler DSL objects using raw strings is inconvenient in the Groovy DSL
  • KT-62758 Gradle: make precise task outputs backup enabled by default
  • KT-62955 Missing static accessors for Wasm targets in Kotlin Gradle plugin DSL:
  • KT-62962 Remove COMPILE_INCREMENTAL_WITH_ARTIFACT_TRANSFORM system property
  • KT-63499 Gradle: Source sets conventions are still registered
  • KT-52976 Remove deprecated Gradle conventions usages
  • KT-62939 Bump minimal supported AGP version to 7.1
  • KT-58223 Kotlin Gradle plugin shouldn't store data in project cache directory
  • KT-62131 Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@63fddc4b of type BuildFlowService.Parameters
  • KT-62264 Send build type report metric to FUS
  • KT-62617 Update report configuration project FUS metrics

Tools. Gradle. Cocoapods

  • KT-63331 CocoaPods plugin noPodspec() causes "property * specifies file * which doesn't exist."

Tools. Gradle. JS

  • KT-62780 K/JS: Deprecate node-specific properties in NodeJsRootExtension
  • KT-63544 KGP: JS - KotlinJsIrLink is not compatible with Gradle CC starting 8.4
  • KT-63312 KJS: Apply IR flags for JS compilations unconditionally
  • KT-62633 wasmWasi/JsNodeTest tasks are always not up-to-date
  • KT-63040 K/JS: Rework outputs of webpack and distribution task

Tools. Gradle. Multiplatform

  • KT-63315 Wasm gradle plugin DSL is invalid for parameterless wasmWasi method
  • KT-63338 [KMP] metadata task fails to find cinterop classes from dependency projects
  • KT-63197 After using Kotlin 1.9.20 on Windows 11, the gradle sync failed
  • KT-63044 KGP: Multiplatform - 8.4 configuration cache support
  • KT-63011 Apple Framework Artifacts is not connected to KotlinNativeTask

Tools. Gradle. Native

  • KT-56455 Gradle: remove enableEndorsedLibs from codebase

Tools. Incremental Compile

  • KT-56963 Add MPP/Jvm incremental compilation tests for both K1 and K2 modes
  • KT-63876 Move useful utilities from KmpIncrementalITBase.kt to KGPBaseTest and/or common utils
  • KT-63010 Build reports may contain incorrect measurements for "Total size of the cache directory"
  • KT-59178 With language version = 2.0 incremental compilation of JVM, JS fails on matching expect and actual declarations

Tools. JPS

  • KT-63549 Add compiler performance metrics to JPS build reports
  • KT-64026 Maven. JVM target is imported as 1.6(deprecated) if an invalid parameter value specified in pom.xml
  • KT-63594 ClassCastException in JPS statistics
  • KT-63799 Make plugin classpath serialization path agnostic

Tools. Kapt

  • KT-60821 [KAPT4] Make sure that KAPT produces correct JCTree; if that's not possible, investigate using JavaPoet as an alternative
  • KT-57389 KAPT3 uses a Javac API for JCImport which will break in JDK 21

Tools. Maven

Tools. Scripts

  • KT-58367 Remove script-util from the repo
  • KT-54819 Scripts: Not able to use slf4j in .main.kts
  • KT-63352 Scripting dependencies resolver logs "file not found" even if the artefact is retrieved

Tools. Wasm

  • KT-63417 KMP hierarchy DSL. Split withWasm() into withWasmJs() and withWasmWasi()

Checksums

File Sha256
kotlin-compiler-2.0.0-Beta2.zip a2866984b7e6ddd0aa4cab27bb3179d36116a72b62836df6f51d8d737b6f73b1
kotlin-native-linux-x86_64-2.0.0-Beta2.tar.gz db20c4da4fd7d5d50af1fafa809f1cc56a9517df28cf684ab98dccfa79c9115d
kotlin-native-macos-x86_64-2.0.0-Beta2.tar.gz bafc9419f782a7b0bfa630014d5f286dee6e49218211e1dc573d72ed63c87ca5
kotlin-native-macos-aarch64-2.0.0-Beta2.tar.gz 569a2ba9a79499b2d71b74a4bb7e26afcbc911f5af0fab69537f3d86b46ab42d
kotlin-native-windows-x86_64-2.0.0-Beta2.zip 7dcf52ca098d8089ed2edde15d44a80123c53e49763ea7dabc554afed7005163