Update dependency org.jetbrains.kotlin:kotlin-stdlib to v1.6.0-M1 - autoclosed#55
Closed
mend-for-github-com[bot] wants to merge 1 commit intomainfrom
Closed
Update dependency org.jetbrains.kotlin:kotlin-stdlib to v1.6.0-M1 - autoclosed#55mend-for-github-com[bot] wants to merge 1 commit intomainfrom
mend-for-github-com[bot] wants to merge 1 commit intomainfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.5.0->1.6.0-M11.5.20->1.6.0-M1By merging this PR, the issue #25 will be automatically resolved and closed:
By merging this PR, the issue #29 will be automatically resolved and closed:
Release Notes
JetBrains/kotlin (org.jetbrains.kotlin:kotlin-stdlib)
v1.6.0-M1: Kotlin 1.6.0-M1Learn how to install Kotlin 1.6.0-M1.
Changelog
Android
KT-48019Bundle Kotlin Tooling Metadata into apk artifactsKT-47733JVM / IR: Android Synthetic don't generate _findCachedViewById functionCompiler
New Features
KT-12794Allow runtime retention repeatable annotations when compiling under Java 8KT-47984In-place arguments inlining for @InlineOnly functionsKT-48194Try to resolve calls where we don't have enough type information, using the builder inference despite the presence of the annotationKT-26245Add ability to specify generic type parameters as not-nullKT-45949Kotlin/Native: Improve bound check eliminationKT-47699Support programmatic creation of class annotations and corresponding feature flag on JVMKT-47736Support conversion from regular functional types to suspending ones in JVM IRKT-39055Support property delegate created via synthetic method instead of fieldPerformance Improvements
KT-33835Bytecode including unnecessary null checks for safe calls where left-hand side is non-nullableKT-41510Compilation of kotlin html DSL is still too slowKT-48211We spend a lot of time in ExpectActual declaration checker when there is very small amount of actual/expect declarationKT-39054Optimize delegated properties which call get/set on the given KProperty instance on JVMKT-47918JVM / IR: Performance degradation with const-bound for-cyclesKT-47785Compilation time increased when trying to compile AssertJ DB expression in 1.5.21KT-46615Don't generate nullability assertions in methods for directly invoked lambdasFixes
KT-48523Kotlin/Native: cross-compilation from Linux to MinGW not working whenplatform.posixis usedKT-48295JVM / IR: VerifyError: Bad access to protected data in getfieldKT-48440JVM IR: Missing checkcast in generated bytecode causes VerifyError in Kotlin 1.5.30KT-48794Breaking change in 1.5.30: Builder inference lambda contains inapplicable calls so {1} cant be inferredKT-48653Warnings on non-exhaustive when statements missing in some cases with 1.6KT-48394JVM: Invalid locals caused by unboxing bytecode optimizationKT-48380kotlin.RuntimeException: Unexpected receiver typeKT-47855Kotlin/Native: compilation fails due to Escape AnalysisKT-48291False positive [ACTUAL_MISSING] Declaration must be marked with 'actual' when implementing actual interfaceKT-48613Kotlin/Native fails to compile debug binaries for watchosArm64 targetKT-48618Enable by default "suspend conversion" feature in 1.6KT-48543Native compiler crashes because of bridges for $default stubsKT-47328JVM / IR: NoSuchFieldError with missing CHECKCASTKT-47638Drop EXPERIMENTAL_IS_NOT_ENABLED diagnosticKT-48349OptIn markers are forbidden on local variable / value parameter / property getter only in presence of explicit Target annotationKT-48589KotlinTypeRefiner is lost, leading to TYPE_MISMATCH and OVERLOAD_RESOLUTION_AMBIGUITY issues with MPP projectsKT-48615Inconsistent behavior with integer literals overflow (Implementation)KT-47937Implement deprecation of computing constant values of complex boolean expressions in when condition branches and conditions of loopsKT-47772False negative WRONG_ANNOTATION_TARGET on type argument to function callKT-48552Kotlin/Native: iosArm64 debug build fails in 1.6.0-M1-139KT-46182Native: prohibit using dots in identifiersKT-47917JVM: "UTF8 string too large" caused by a big stringKT-46230JVM IR: "IllegalArgumentException: Null argument in ExpressionCodegen for parameter VALUE_PARAMETER MOVED_DISPATCH_RECEIVER" with value class overriding function with default parameterKT-48302FIR: Investigate not-null assertion on generic Java methodKT-47422-Xjspecify-annotations: If a class has a@Nullabletype-parameter bound, Kotlin should still treat some users' type arguments as platform typesKT-48500AE: "Last parameter type of suspend function must be Continuation, but it is kotlin.coroutines.experimental.Continuation" forkotlin-stdlib-commonlibraryKT-48469Problem with properties lazy initialization while using kotlinx.serialization pluginKT-48432Regression in IntRange.contains (and probably other ranges too) when used in-placeKT-48361INTEGER_OPERATOR_RESOLVE_WILL_CHANGE is not reported in some positionsKT-44855"AssertionError: SyntheticAccessorLowering should not attempt to modify other files" on smart cast of protected field ownerKT-47499JVM / IR: java.lang.VerifyError: Bad access to protected data in invokevirtual when trying to clone the result of lambda invocation that is "this" in an extension functionKT-46451JVM Debugging: stepping on finally block end brace line before stepping into finally codeKT-48329It's impossible to infer a type variables based on several builder inference lambdasKT-48193Don't use the builder inference for calls which can be resolved without itKT-46450JVM Debugging: some break statements in catch blocks have no line numbers and you cannot set breakpoints on themKT-48172"IllegalStateException: Cannot serialize error type: [ERROR : ]" in 1.5.21 with java kotlin interopKT-48262"Inconsistent type" with JSpecify @NullMarkedKT-46697IllegalStateException: IrTypeAliasSymbol expected: Unbound public symbol for public kotlinx.coroutines/CancellationException|null[0] compiling KMM module for Kotlin/Native with Kotlin 1.5KT-47285IR deserialization exception when dependency KLIB has class instead of typealiasKT-41378Compilation failed: Deserializer for declaration public kotlinx.coroutines/SingleThreadDispatcher|null[0] is not foundKT-47988JVM / IR: "VerifyError: Bad type on operand stack" when invoking apply with a local method referenceKT-47833False positive "Type argument is not within its bounds " with upcasting in 1.5.30-M1KT-47911Native compiler on ios_arm64 target generates movi.2d instructions, which are mishandled by Apple hardwareKT-14392Repeated annotation with use site target is not detected for getter and setterKT-47493Missed frontend diagnostic in try/catchKT-47597JVM IR: if statement doesn't eval correctly on 1.5.20 possible nullable type differences.KT-47922False negative type mismatch on empty when as last statement of lambdaKT-47830Some code doesn't compile with unrestricted builder inferenceKT-34594Do not generate fake debugger variables initialization for @InlineOnly functionsKT-42139NI: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER for emptyList / listOf (with no arguments) / emptyMap / mapOf (with no arguments) inside if block insidesequenceblockKT-47749Incorrect scope of a local variable inside the coroutineKT-47527JVM / IR ClassCastException: "kotlin.Unit cannot be cast to java.lang.String"KT-47941"IllegalStateException: Expected some types" on a call with several excepted type constraintsKT-47854"IllegalArgumentException: Type is inconsistent" with Android's@Nullableannotation starting in Kotlin 1.5.20KT-47899"AssertionError: Intersection type should not be marked nullable" with 1.5.21KT-47846Stack overflow when handling enhanced recursive type parameterKT-47747Introduce specific error for calls which could be resolved only with unrestricted builder inferenceKT-47840JVM / IR: "IllegalStateException: No mapping for symbol: VALUE_PARAMETER name: x" in nested local functions with recursive callsKT-46448JVM Debugging: Locals in finally blocks not always duplicated when the finally block isKT-47396<?> in @NullMarked code should permit nullable typesKT-47716JVM / IR: NoSuchMethodError when trying to get MAX_VALUE from ULong in non-trivial try/finally contextKT-47762JVM / IR: Properties with the same signatures in inline class and its companion object crashes the compiler with NullPointerExceptionKT-47729False positive INTEGER_OPERATOR_RESOLVE_WILL_CHANGE warning: "expression will be resolved to Int in future releases"KT-47741JVM / IR: VerifyError: Bad type on operand stack with iterator and invoking method reference to IntIteratorKT-43696ClassFormatError on @JvmStatic external fun in interface companion objectKT-47715JVM / IR, R8: External getter cannot be represented in dex formatKT-47744UninitializedPropertyAccessException compiler exception on nested builder inference callsKT-47724Type inference: False positive "Returning type parameter has been inferred to Nothing implicitly"KT-47684Add warning onischecks which are always falseKT-47685False positive CAST_NEVER_SUCCEEDS on variable of intersection typeKT-32188NI: False positive "This cast can never succeed"KT-35687NI: Poor cast can never succeed [CAST_NEVER_SUCCEEDS]KT-41331False negative USELESS_IS_CHECK with nullKT-47609JVM IR: "AssertionError: Unexpected number of type arguments" when compiling an extension property with annotation and it extends a value class with a generic parameterKT-47589Using RequiresOptIn annotation on constructor property results in error even if the annotation has no VALUE_PARAMETER targetKT-47413FIR: Rework FirDelegatedScopeKT-47120JVM IR: NoClassDefFoundError when there are an extension and a regular function with the same nameKT-47492Illegal use of DUPIDE. Gradle Integration
KT-47463MPP: Import fails withTask 'runCommonizer' not found in root projectif Kotlin configured only in moduleIDE. JS
KT-47557KJS: With NPM dependency IDEA import fails when performed before Gradle buildIDE. Multiplatform
KT-47604kotlin-stdlib-common leaks into dependencies of Android-specific source setsJavaScript
KT-47700Support instantiation of annotation classes on JSKT-46204KJS / IR: SupportSuspendFunctionNas super typeKT-48344KJS / IR: incorrect call with vararg argument from suspend functionKT-46551KJS / IR: Add a basic sourcemap generationKT-47751Kotlin/JS: IR + IC: "argument has no effect without source map" warnings on buildLibraries
KT-48587Deprecate some of JS-only stdlib APIKT-48584Introduce JVM readln() and readlnOrNull() top-level functionsKT-39328Make builder collection implementations serializableKT-47676K/JS: MatchResult.next() returns no expected next match if called aftermatchEntireKT-39166Nothing is silently mapped to Void in arguments of the type passed to typeOfNative
KT-48566ExceptionInInitializerError when configuring Gradle project with kotlin-multiplatform plugin on a host unsupported by Kotlin/NativeKT-48591Kotlin/Native: Char.isHighSurrogate and Char.isLowSurrogate return wrong result for macosArm64 and iosArm64 with compiler cache enabledKT-48491CInterop broke in Kotlin 1.5.30KT-48039Native: support shaded (aka embeddable) compiler jar in Gradle pluginKT-42693Remove dependency on ncurses5 libraryKT-47424StackOverflowError in IR hashCode() methods compiling KMM module for Kotlin/Native with Kotlin 1.5.0+Native. C Export
KT-47209kotlin-native fails to generate valid C header if a setter takes anonymous parameter (_)Native. C and ObjC Import
KT-48074Native: cinterop: __flexarr supportNative. ObjC Export
KT-47809Kotlin/Native: ObjC-export module name usage in klib compilationNative. Platforms
KT-43024Kotlin/Native: Windows as cross-compilation targetNative. Runtime
KT-48452Kotlin/Native: Support thread state switching in termination handlers for the new MMNative. Runtime. Memory
KT-48143Kotlin/Native: test fails with assert with new MM and state checkerKT-48364Uninitialized top-level properties in new MMKT-44283staticCFunction with CValue parameter crashes when invoked off the main threadNative. Stdlib
KT-47662[Native, All platforms] Incorrect parsing of long strings to Float and DoubleReflection
KT-47650KClass::nestedClasses throws ClassCastException for script classes with type aliasesKT-45066Support flexible types (nullability, mutability, raw) in typeOfKT-35877typeOf<MutableList<>> cannot be distinguished from typeOf<List<>> in Kotlin/JVMTools. CLI
KT-47623Deprecate -Xuse-experimentalKT-32376“no main manifest attribute” on running the jar for cli-compiled Kotlin objects with main functionKT-48026Add the compiler X-flag to enable self upper bound type inferenceKT-47640CLI: support -option=value format as for -Xoption=valueKT-47099Add a stable compiler argument for opt-in requirements as soon as they are stableKT-30778kotlin-compiler.jar contains shaded but not relocated kotlinx.coroutinesTools. Commonizer
New Features
KT-47433[Commonizer] Commonize functions/properties with TA/Class types in signatureKT-47691[Commonizer] CommonizevarandvalpropertiesKT-47434[Commonizer] Commonize parameterized (type-alias + class) typesKT-47432[Commonizer] Commonize (type-alias + class) types used in functionsFixes
KT-47523MPP: Unable to resolve c-interop dependency if platform is included in an intermediate source set with the only targetKT-48278[Commonizer] platform.posix.usleep not commonized in sqliterKT-46691MPP: Type mismatch for hierarchically commonized typealiasesKT-47221C-interop commonization fails if few targets reuse same source setKT-47775Commonizer don't run for shared native code if test source set depends on mainKT-47053MPP: Unable to resolve c-interop commonized code from shared test source setKT-48118Commonized c-interop lib is not attached to common main source setKT-47641Enabled cInterop commonization triggers native compilation during Gradle sync in IDEKT-47056MPP: Change naming for folder with commonized c-interop librariesTools. Compiler Plugins
KT-40340jvm-abi-gen plugin: failure with Android D8 (Dexer) toolKT-40133jvm-abi-gen plugin: fails for inline function containing apply block with anonymous objectKT-28704jvm-abi-gen plugin: avoid calling codegen twice per moduleKT-48111JVM / IR: "IllegalAccessError: tried to access method" with NoArg plugin and sealed classTools. Gradle
Fixes
KT-45202Kapt crashes with java.io.UTFDataFormatExceptionKT-46719Remove 'kotlin.useFallbackCompilerSearch' build optionKT-27687Empty directories in source set causes gradle cache miss for KotlinCompile taskKT-48226Kotlin toolchain does not set 'jvmTarget' for Kotlin tasks on configuration cache reuseKT-47792KGP should ignore ProjectDependency when customize kotlin DependenciesKT-47867Replace usages of IncrementalTaskInputs with InputChangesKT-47940Kotlin JVM toolchain breaks configuration cacheKT-47520Kotlin and Java target compatibility check produces false positive on using Gradle toolchainsKT-46978Duplicate resource errors on gradle 7 with multi-module multiplatform project with withJavaKT-47635Kotlin version conflict on using 'noarg' Gradle pluginKT-47636Kotlin version conflict on using 'sam-with-receiver' Gradle pluginKT-47354Kotlin version conflict on using 'allopen' Gradle pluginKT-46972Migrate Kotlin repo to use Gradle toolchain featureTools. Gradle. JS
KT-48332Make NodeJsSetupTask and YarnSetupTask not cacheableKT-48241KJS / Gradle: NPM test dependency may break Gradle configuration cacheKT-32071Possibility to disable downloading of Node.js and YarnKT-37895KJS: NPM Post-install Scripts sometimes print "node: not found"KT-34985kotlin-gradle-plugin: Should align ways NodeJs and Yarn are downloadedTools. Gradle. Multiplatform
KT-46343[Commonizer] Use lockfile for NativeDistributionCommonizationCacheKT-48427Execution failed for task ':commonizeNativeDistribution'. > java.io.FileNotFoundException lock (No such file or directory)KT-48513Commonized platform libraries are unresolved in modules for new hierarchical MPP flagKT-48138CInteropCommonizer: Missing commonization request if test source set has different targets than associated mainKT-35832Gradle: MPP plugin operates with -Xuse-experimental and not with -Xopt-inKT-38111Gradle DSL: rename useExperimentalAnnotation functionKT-47612Task :buildKotlinToolingMetadata is incompatible with Gradle configuration cacheKT-47611Task :generateMetadataFileForKotlinMultiplatformPublication is incompatible with Gradle configuration cacheTools. Gradle. Native
KT-47362Cocoapods plugin: add error reporting for case when pod is not installed on user machineKT-37513CocoaPods Gradle plugin: Support building tests from terminal for projects depending on podsKT-47078Support Apple Silicon in cocoapods gradle pluginTools. JPS
KT-46804Slow Kotlin incremental build: LookupStorage operationsTools. Scripts
KT-48025JVM / IR / Script: IllegalStateException: No mapping for symbol: VALUE_PARAMETER INSTANCE_RECEIVER caused by method tnat returns outer functionKT-47927Script: memory leak with new enginesKT-48303main.kts script fails to detect vanished dependencies if run from the cacheKT-48177Scripts: OutOfMemoryException with circular@file:ImportKT-46645Scripts: "IllegalStateException: No mapping for symbol: VALUE_PARAMETER INSTANCE_RECEIVER" caused by get accessorKT-43917Gradle dependency conflict with resolutionStrategy failOnVersionConflict and kotlin 1.4Tools. kapt
KT-47853KaptWithoutKotlincTaskeagerly resolves dependencies during construction/configuration and can cause deadlocksKT-48195Kapt causes dead lock in DefaultFileLockManagerKT-47347KAPT: Stub generation in Gradle cache is not consistently relocatableChecksums
v1.5.32: Kotlin 1.5.32Changelog
Tools. Gradle. Multiplatform
KT-49798[MPP] [Android] AGP 7.1.0+ android target publications leak 'AgpVersionAttr' attributeChecksums
v1.5.31: Kotlin 1.5.31Changelog
Compiler
Fixes
KT-48659JVM / IR: Referential equality returns true for different instancesKT-48613Kotlin/Native fails to compile debug binaries for watchosArm64 targetKT-48316"No value passed for parameter" regression with Java annotation default values with JSR-305KT-48343Mistake in an error message for uninferred type variable without unrestricted builder inferenceKT-48543Native compiler crashes because of bridges for $default stubsKT-48349OptIn markers are forbidden on local variable / value parameter / property getter only in presence of explicit Target annotationKT-48295JVM / IR: VerifyError: Bad access to protected data in getfieldKT-48551JVM / IR: "IllegalStateException: Inline class has no primary constructor" caused by inline class from one module andfun interfacefrom anotherKT-47917JVM: "UTF8 string too large" caused by a big stringKT-48440JVM IR: Missing checkcast in generated bytecode causes VerifyError in Kotlin 1.5.30KT-48361INTEGER_OPERATOR_RESOLVE_WILL_CHANGE is not reported in some positionsKT-48267JVM IR: CCE on callable reference to Array constructor passed to inline functionIDE
KTIJ-15744Reopening build.gradle.kts-based project reports MISSING_SCRIPT_BASE_CLASS KotlinBuildScript until re-importKTIJ-19005JDK 17: "PermittedSubclasses requires ASM9" exception multiple times per second during analysisKTIJ-19504IDE highlighting: Kotlin plugin 1.5.30 started showing some valid classes from multiplatform libraries as not existingNative
KT-48591Kotlin/Native: Char.isHighSurrogate and Char.isLowSurrogate return wrong result for macosArm64 and iosArm64 with compiler cache enabledKT-48491CInterop broke in Kotlin 1.5.30Checksums
v1.5.30: Kotlin 1.5.30Changelog
Backend. Native. Debug
KT-47405Incorrect path from inlined method in stacktrace on iOS-simulator ARM64KT-47408Incorrect line number of inlined method on iOS-simulator ARM64Compiler
New Features
KT-44261Support RxJava 3 nullability annotationsKT-32443Experimental declarations should be contagious even when they are not explicitly usedKT-45844Forbid using experimental markers on override declarationsKT-45845Forbid using experimental markers on getterKT-46644Resolve overrides for IrProperty on deserializationKT-46967Support class type parameters annotations in FIRKT-47402Native: optimize access to object declarations that have only const vals and no init blocksKT-47709Make when statements with enum, sealed, and Boolean subjects exhaustive by defaultKT-47699Support programmatic creation of class annotations and corresponding feature flag on JVMPerformance Improvements
KT-45103Direct invoke optimizationKT-47785Compilation time increased when trying to compile AssertJ DB expression in 1.5.21Fixes
KT-48361INTEGER_OPERATOR_RESOLVE_WILL_CHANGE is not reported in some positionsKT-48180JVM / IR: AssertionError: "Lambda with offset already exists" caused by calling inline function with default lambda parameterKT-47328JVM / IR: NoSuchFieldError with missing CHECKCASTKT-48172"IllegalStateException: Cannot serialize error type: [ERROR : ]" in 1.5.21 with java kotlin interopKT-48230JVM IR: CCE for multiple receivers caseKT-48262"Inconsistent type" with JSpecify @NullMarkedKT-48167JVM / IR: If Map#entrySet is implemented in an interface, Kotlin compiler generates incorrect code for its implementationKT-47988JVM / IR: "VerifyError: Bad type on operand stack" when invoking apply with a local method referenceKT-48163JVM / IR: "VerifyError: Bad type on operand stack" when throwing result of smartcastKT-47833False positive "Type argument is not within its bounds " with upcasting in 1.5.30-M1KT-47830Some code doesn't compile with unrestricted builder inferenceKT-39883Deprecate computing constant values if complex boolean expressions in when condition branches and conditions of loopsKT-47037Eliminate builder inference restrictionsKT-46726IR + BuilderInference: AssertionError: Unbound private symbol on usage of this in a BuilderInference lambdaKT-43855Support gradual introduction of new nullability annotationsKT-43142FIR: Check UPPER_BOUND_VIOLATED for type alias constructors properlyKT-45228Leaking builder inference type variables though callable referencesKT-42270NI: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER for BuilderInference with extension functionsKT-46029JVM / IR: "Unbound private symbol: " when trying to save SequenceScope in propertyKT-45258Wrong CST between types which contain stub typeKT-45224Type safety problem through leaking of the builder inference scopeKT-22852Report diagnostics on implicit usages of experimental APIKT-22941Experimental marker annotation with SOURCE retention is compiled without errorKT-24993Inference for buildSequence/yield doesn't work for labeled lambdasKT-31728Incorrect EXPERIMENTAL_OVERRIDE_ERROR for override of experimental function in anonymous objectKT-33364Kotlin/Native debugger: execution stops only at next line for breakpoint at when expression without parameterKT-42139NI: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER for emptyList / listOf (with no arguments) / emptyMap / mapOf (with no arguments) inside if block insidesequenceblockKT-44241NI: BuilderInference regressionKT-44372FIR: KClass::java cannot be resolved as callable referenceKT-44547Native: wrong RTTI when overriding functions with equal signatures but different type argumentsKT-44571Segfault on unnecessary int unboxingKT-45083Problem with property reference in builder inferenceKT-45315Deprecate (V)::a reference resolution to companion in FE 1.0KT-46393AE: "1 trailing arguments were found in Any type" for private function with implicit anonymous return type inside generic classKT-46661FIR: Investigate inference issue with self-types and star projectionKT-46775[Native] [IR] Support multiple suspend lambdas as class supertypesKT-46836Error: Invalid LLVM module on inlineClasses external testsKT-46838NullPointerException: Parameter specified as non-null is null in CollectionsKt.joinToString()KT-46896Native IR: NPE when using irBuiltIns.suspendFunctionKT-46996FIR: INFERENCE_NO_INFORMATION_FOR_PARAMETER on type aliases with non-trivial expansionsKT-47034KtValueArgument.getArgumentExpression could lead to StubBasedPsiElementBase.notBoundInExistingAstKT-47052BuilderInference case with flatMapTo doesn't work properlyKT-47082Stub type variable is leaked (reproduces with K/N during deserialization)KT-47143ClassicTypeSystemContext couldn't handle: Captured(*) in Kotlin 1.5.0KT-47148Type mismatch: inferred type is Any? but T? was expectedKT-47180Forbid using OptIn markers on local variable, value parameter or fieldKT-47181Forbid using OptIn markers on types or type parametersKT-47183Segfault on int unboxingKT-47208Backend Internal error: Exception during IR lowering: assert at IrOverridingUtilKt.buildFakeOverrideMemberKT-47276Nullability annotations without target are ignored if type enhancement improvements are enabledKT-47450StackOverflowException in psi2ir with many chained binary expressionsKT-47462K/N: AssertionError: Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@6cb748d(NON-PUBLIC API): deserialized class CompanionKT-47941"IllegalStateException: Expected some types" on a call with several excepted type constraintsKT-47854"IllegalArgumentException: Type is inconsistent" with Android's @Nullable annotation starting in Kotlin 1.5.20KT-47899"AssertionError: Intersection type should not be marked nullable" with 1.5.21KT-47846Stack overflow when handling enhanced recursive type parameterKT-47747Introduce specific error for calls which could be resolved only with unrestricted builder inferenceKT-47739JVM / IR: NoSuchFieldError with generic sealed classesKT-47422-Xjspecify-annotations: If a class has a @Nullable type-parameter bound, Kotlin should still treat some users' type arguments as platform typesKT-47437Type inference failure with raw types under -Xjspecify-annotations=strictKT-47396<?> in @NullMarked code should permit nullable typesKT-47729False positive INTEGER_OPERATOR_RESOLVE_WILL_CHANGE warning: "expression will be resolved to Int in future releases"KT-47333Xcode 13: Compilation for iOS simulator failsKT-47772False negative WRONG_ANNOTATION_TARGET on type argument to function callKT-47467JVM / IR: "AssertionError: Annotation class expected: deserialized class Array" caused by java annotation as a parameter of another annotationKT-47744UninitializedPropertyAccessException compiler exception on nested builder inference callsKT-47724Type inference: False positive "Returning type parameter has been inferred to Nothing implicitly"KT-47660JVM / IR: Mockito verification fails when named parameters are ordered differentlyKT-47589Using RequiresOptIn annotation on constructor property results in error even if the annotation has no VALUE_PARAMETER targetDocs & Examples
KT-47649Important note about KJS IR compiler and stdlib compatibility in 1.5.30IDE
KT-44643ISE: Could not generate LightClass for some declared in on initialisation bylazyin a JVM module of a multiplatform projectKT-47947Add language version 1.6 to the compiler configuration preferencesIDE. Gradle Integration
KT-47163KJS / Gradle:Could not resolve <artifact>despite being resolvable & project buildableIDE. JS
KT-46548KJS: Create an IDE plugin to help with migration to and keeping compatibility with JS IR BEKT-47557KJS: With NPM dependency IDEA import fails when performed before Gradle buildJavaScript
KT-46204KJS / IR: SupportSuspendFunctionNas super typeKT-38363JS IR BE: support IC for loweringsKT-41651JS IR BE: DCE removesrendermethod from react components passed to the kotlinx.reactKT-46520KJS / IR: ISE "Can't find name for declaration FUN name:CharArray_init_$Create$" on callable reference to Array constructorKT-45738KJS / IR: Wrong generated code forwhenstatementKT-46551KJS / IR: Add a basic sourcemap generationLibraries
KT-47477Could not resolve kotlin-test during project import in case of multiplatform with only JVM target platformKT-47675Converting Double to Duration may expose inexactnessKT-47419Remove method of the MapBuilder iterator throws IOOBE instead of IllegalStateExceptionKT-47211Kotlin Native - AbstractMutableList.addAll (with index) does not throw IndexOutOfBoundsException if elements is emptyKT-23351Regex.splitToSequence, CharSequence.splitToSequence(Regex)KT-42851kotlin.time.Duration toString() shows wrong result for secondsKT-45325Parsing Duration from StringKT-34021Regex.matchAt / matchesAtNative
KT-35001warning: linking module flags 'SDK Version': IDs have conflicting values ('[2 x i32] [i32 13, i32 2]'KT-43475Kotlin/Native compiler: Including a static C library increased cross-compilation time from 3.5minutes to 1 hour 40 minutesKT-44148Escape analysis failure: Heap space out of memoryNative. C and ObjC Import
KT-46711platform.windows._LARGE_INTEGER cannot be passed by valueNative. ObjC Export
KT-43780Improve Swift/Obj-C ergonomics for object and companion objectKT-46431KMP accessing a property of an anonymous inner class that inherits from an abstract class causes a 'NSGenericException', reason: '[Shared_kobjcc0 ] is abstract' exception.KT-47042Kotlin/Native: Concurrency Interoperability with Objective-C (Swift 5.5)Native. Stdlib
KT-47915Kotlin/Native: Provide access to test cases generated by the compilerNative. Platforms
KT-44321Support Apple Silicon without Rosetta 2Reflection
KT-18277InvalidProtocolBufferException: Stream closed on multithreaded access to built-ins data in reflectionKT-44977Reflection: ClassCastException caused by annotations with "AnnotationTarget.TYPE" usage on array attributes accessKT-47650KClass::nestedClasses throws ClassCastException for script classes with type aliasesTools. CLI
KT-47623Deprecate -Xuse-experimentalKT-30778kotlin-compiler.jar contains shaded but not relocated kotlinx.coroutinesKT-40979CLI: Executing "kotlinc.bat" at a root path, errors are not reported with a correct filepathKT-40994CLI: Add documentation for -J argument inkotlinc -helpKT-46764CLI: Java record defined in a single file root is not resolvedTools. Commonizer
KT-47433[Commonizer] Commonize functions/properties with TA/Class types in signatureKT-47691[Commonizer] CommonizevarandvalpropertiesKT-47434[Commonizer] Commonize parameterized (type-alias + class) typesKT-47432[Commonizer] Commonize (type-alias + class) types used in functionsKT-45992[Commonizer] Allow commonization of TypeAlias and Class with same nameKT-46716[Commonizer] Analyze leaf source sets with original platform librariesKT-46957[Commonizer] Unresolved classifier: platform/posix/ptrdiff_t for linuxMips32KT-47133Forbid cinterop commonization with hierarchical commonization turned offKT-47301[Commonizer] Associative commonizationTools. Compiler Plugins
KT-46723Kotlin Lombok: JPS: config file is searched in directory relative to compiler daemonKT-46739@SerialInfo NPE with default parameterTools. Daemon
KT-47152Incremental Compilation with Kotlin compile daemon and JDK 17 fails with IllegalAccessExceptionTools. Gradle
New Features
KT-45757Add an easier way to explicitly set Kotlin daemon jvm argumentsFixes
KT-47940Kotlin JVM toolchain breaks configuration cacheKT-46626kotlin-android plugin with kotlin-dsl: Extension with name 'android' does not exist. Currently registered extension names: [ext, kotlin, kotlinTestRegistry]KT-47754“'compileDebugUnitTestJavaWithJavac' task (current target is 1.8)” during build android project without specified target and with jvmToolchain = JDK 11KT-47520Kotlin and Java target compatibility check produces false positive on using Gradle toolchainsKT-46978Duplicate resource errors on gradle 7 with multi-module multiplatform project with withJavaKT-27687Empty directories in source set causes gradle cache miss for KotlinCompile taskKT-47635Kotlin version conflict on using 'noarg' Gradle pluginKT-47636Kotlin version conflict on using 'sam-with-receiver' Gradle pluginKT-47354Kotlin version conflict on using 'allopen' Gradle pluginKT-45202Kapt crashes with java.io.UTFDataFormatExceptionKT-13258Kotlin compiler doesn't respect Gradle's "sourceCompatibility" and "targetCompatibility"KT-43095Add support for Java Toolchain to the Gradle pluginKT-45611KGP should declare JDK version as inputKT-47185Migrate Gradle Integration tests to use cache redirectorKT-48226Kotlin toolchain does not set 'jvmTarget' for Kotlin tasks on configuration cache reuseKT-44279Kotlin-Android Gradle Plugin (KGP) should react to application of AGP rather than assume it was applied firstKT-44041PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corruptedTools. Gradle. JS
KT-47436KJS / IR: Compiler plugins not provided to link taskKT-46693KJS: Update node.js version used inside gradle to latest 14.xKT-47559KJS / Gradle: Run task created using eager API and breaks task configuration avoidanceKT-47176KJS: Actualize NPM dependenciesKT-47154KJS / Gradle: Compile task reads dependencies metadata from filesystem too long on large projectsKT-47114KJS / IR: Could not resolvecoroutines-core-jsKT-43379KJS / Gradle: On windows, an invalid regex is generated for Webpack ProgressPluginTools. Gradle. Multiplatform
KT-47210[Commonizer] Avoid commonization of test source set hierarchy if possibleKT-46279[Commonizer] Gradle 7.0 will emit warning for metadata compilation in multimodule buildsKT-47126ios() target shortcuts should not include Apple Silicon by defaultKT-38111Gradle DSL: rename useExperimentalAnnotation functionKT-47126ios() target shortcuts should not include Apple Silicon by defaultKT-47612Task :buildKotlinToolingMetadata is incompatible with Gradle configuration cacheKT-47611Task :generateMetadataFileForKotlinMultiplatformPublication is incompatible with Gradle configuration cacheTools. Gradle. Native
KT-42023Kotlin Native Cocoapods plugin fails when Xcode project has custom CONFIGURATION namesKT-47653Support multi arch build via embedAndSign taskKT-47078Support Apple Silicon in cocoapods gradle pluginKT-47077Support Apple Silicon in embedAndSign taskTools. Incremental Compile
KT-27660JS Incremental compilation fails with java.io.IOException: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0KT-36865IC: "ArrayIndexOutOfBoundsException: Array index out of range: 0"KT-35532Incremental compilation often fails on @JVMMultifileClassKT-19806IncrementalPackagePartProvider cache corruption causes frontend exceptionTools. JPS
KT-47753JPS: "IndexOutOfBoundsException: Index 0 out of bounds for length 0": Rebuild triggered due to IOOBE in `kotlin.incremental.LookupS