Changelog
Backend. Native. Debug
KT-47405
Incorrect path from inlined method in stacktrace on iOS-simulator ARM64KT-47408
Incorrect line number of inlined method on iOS-simulator ARM64
Compiler
New Features
KT-44261
Support RxJava 3 nullability annotationsKT-32443
Experimental declarations should be contagious even when they are not explicitly usedKT-45844
Forbid using experimental markers on override declarationsKT-45845
Forbid using experimental markers on getterKT-46644
Resolve overrides for IrProperty on deserializationKT-46967
Support class type parameters annotations in FIRKT-47402
Native: optimize access to object declarations that have only const vals and no init blocksKT-47709
Make when statements with enum, sealed, and Boolean subjects exhaustive by defaultKT-47699
Support programmatic creation of class annotations and corresponding feature flag on JVM
Performance Improvements
KT-45103
Direct invoke optimizationKT-47785
Compilation time increased when trying to compile AssertJ DB expression in 1.5.21
Fixes
KT-48361
INTEGER_OPERATOR_RESOLVE_WILL_CHANGE is not reported in some positionsKT-48180
JVM / IR: AssertionError: "Lambda with offset already exists" caused by calling inline function with default lambda parameterKT-47328
JVM / IR: NoSuchFieldError with missing CHECKCASTKT-48172
"IllegalStateException: Cannot serialize error type: [ERROR : ]" in 1.5.21 with java kotlin interopKT-48230
JVM IR: CCE for multiple receivers caseKT-48262
"Inconsistent type" with JSpecify @NullMarkedKT-48167
JVM / IR: If Map#entrySet is implemented in an interface, Kotlin compiler generates incorrect code for its implementationKT-47988
JVM / IR: "VerifyError: Bad type on operand stack" when invoking apply with a local method referenceKT-48163
JVM / IR: "VerifyError: Bad type on operand stack" when throwing result of smartcastKT-47833
False positive "Type argument is not within its bounds " with upcasting in 1.5.30-M1KT-47830
Some code doesn't compile with unrestricted builder inferenceKT-39883
Deprecate computing constant values if complex boolean expressions in when condition branches and conditions of loopsKT-47037
Eliminate builder inference restrictionsKT-46726
IR + BuilderInference: AssertionError: Unbound private symbol on usage of this in a BuilderInference lambdaKT-43855
Support gradual introduction of new nullability annotationsKT-43142
FIR: Check UPPER_BOUND_VIOLATED for type alias constructors properlyKT-45228
Leaking builder inference type variables though callable referencesKT-42270
NI: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER for BuilderInference with extension functionsKT-46029
JVM / IR: "Unbound private symbol: " when trying to save SequenceScope in propertyKT-45258
Wrong CST between types which contain stub typeKT-45224
Type safety problem through leaking of the builder inference scopeKT-22852
Report diagnostics on implicit usages of experimental APIKT-22941
Experimental marker annotation with SOURCE retention is compiled without errorKT-24993
Inference for buildSequence/yield doesn't work for labeled lambdasKT-31728
Incorrect EXPERIMENTAL_OVERRIDE_ERROR for override of experimental function in anonymous objectKT-33364
Kotlin/Native debugger: execution stops only at next line for breakpoint at when expression without parameterKT-42139
NI: NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER for emptyList / listOf (with no arguments) / emptyMap / mapOf (with no arguments) inside if block insidesequence
blockKT-44241
NI: BuilderInference regressionKT-44372
FIR: KClass::java cannot be resolved as callable referenceKT-44547
Native: wrong RTTI when overriding functions with equal signatures but different type argumentsKT-44571
Segfault on unnecessary int unboxingKT-45083
Problem with property reference in builder inferenceKT-45315
Deprecate (V)::a reference resolution to companion in FE 1.0KT-46393
AE: "1 trailing arguments were found in Any type" for private function with implicit anonymous return type inside generic classKT-46661
FIR: Investigate inference issue with self-types and star projectionKT-46775
[Native] [IR] Support multiple suspend lambdas as class supertypesKT-46836
Error: Invalid LLVM module on inlineClasses external testsKT-46838
NullPointerException: Parameter specified as non-null is null in CollectionsKt.joinToString()KT-46896
Native IR: NPE when using irBuiltIns.suspendFunctionKT-46996
FIR: INFERENCE_NO_INFORMATION_FOR_PARAMETER on type aliases with non-trivial expansionsKT-47034
KtValueArgument.getArgumentExpression could lead to StubBasedPsiElementBase.notBoundInExistingAstKT-47052
BuilderInference case with flatMapTo doesn't work properlyKT-47082
Stub type variable is leaked (reproduces with K/N during deserialization)KT-47143
ClassicTypeSystemContext couldn't handle: Captured(*) in Kotlin 1.5.0KT-47148
Type mismatch: inferred type is Any? but T? was expectedKT-47180
Forbid using OptIn markers on local variable, value parameter or fieldKT-47181
Forbid using OptIn markers on types or type parametersKT-47183
Segfault on int unboxingKT-47208
Backend Internal error: Exception during IR lowering: assert at IrOverridingUtilKt.buildFakeOverrideMemberKT-47276
Nullability annotations without target are ignored if type enhancement improvements are enabledKT-47450
StackOverflowException in psi2ir with many chained binary expressionsKT-47462
K/N: AssertionError: Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@6cb748db (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-47846
Stack overflow when handling enhanced recursive type parameterKT-47747
Introduce specific error for calls which could be resolved only with unrestricted builder inferenceKT-47739
JVM / 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-47437
Type inference failure with raw types under -Xjspecify-annotations=strictKT-47396
<?> in @NullMarked code should permit nullable typesKT-47729
False positive INTEGER_OPERATOR_RESOLVE_WILL_CHANGE warning: "expression will be resolved to Int in future releases"KT-47333
Xcode 13: Compilation for iOS simulator failsKT-47772
False negative WRONG_ANNOTATION_TARGET on type argument to function callKT-47467
JVM / IR: "AssertionError: Annotation class expected: deserialized class Array" caused by java annotation as a parameter of another annotationKT-47744
UninitializedPropertyAccessException compiler exception on nested builder inference callsKT-47724
Type inference: False positive "Returning type parameter has been inferred to Nothing implicitly"KT-47660
JVM / IR: Mockito verification fails when named parameters are ordered differentlyKT-47589
Using RequiresOptIn annotation on constructor property results in error even if the annotation has no VALUE_PARAMETER target
Docs & Examples
KT-47649
Important note about KJS IR compiler and stdlib compatibility in 1.5.30
IDE
KT-44643
ISE: Could not generate LightClass for some declared in on initialisation bylazy
in a JVM module of a multiplatform projectKT-47947
Add language version 1.6 to the compiler configuration preferences
IDE. Gradle Integration
KT-47163
KJS / Gradle:Could not resolve <artifact>
despite being resolvable & project buildable
IDE. JS
KT-46548
KJS: Create an IDE plugin to help with migration to and keeping compatibility with JS IR BEKT-47557
KJS: With NPM dependency IDEA import fails when performed before Gradle build
JavaScript
KT-46204
KJS / IR: SupportSuspendFunctionN
as super typeKT-38363
JS IR BE: support IC for loweringsKT-41651
JS IR BE: DCE removesrender
method from react components passed to the kotlinx.reactKT-46520
KJS / IR: ISE "Can't find name for declaration FUN name:CharArray_init_$Create$" on callable reference to Array constructorKT-45738
KJS / IR: Wrong generated code forwhen
statementKT-46551
KJS / IR: Add a basic sourcemap generation
Libraries
KT-47477
Could not resolve kotlin-test during project import in case of multiplatform with only JVM target platformKT-47675
Converting Double to Duration may expose inexactnessKT-47419
Remove method of the MapBuilder iterator throws IOOBE instead of IllegalStateExceptionKT-47211
Kotlin Native - AbstractMutableList.addAll (with index) does not throw IndexOutOfBoundsException if elements is emptyKT-23351
Regex.splitToSequence, CharSequence.splitToSequence(Regex)KT-42851
kotlin.time.Duration toString() shows wrong result for secondsKT-45325
Parsing Duration from StringKT-34021
Regex.matchAt / matchesAt
Native
KT-35001
warning: linking module flags 'SDK Version': IDs have conflicting values ('[2 x i32] [i32 13, i32 2]'KT-43475
Kotlin/Native compiler: Including a static C library increased cross-compilation time from 3.5minutes to 1 hour 40 minutesKT-44148
Escape analysis failure: Heap space out of memory
Native. C and ObjC Import
KT-46711
platform.windows._LARGE_INTEGER cannot be passed by value
Native. ObjC Export
KT-43780
Improve Swift/Obj-C ergonomics for object and companion objectKT-46431
KMP accessing a property of an anonymous inner class that inherits from an abstract class causes a 'NSGenericException', reason: '[Shared_kobjcc0 ] is abstract' exception.KT-47042
Kotlin/Native: Concurrency Interoperability with Objective-C (Swift 5.5)
Native. Stdlib
KT-47915
Kotlin/Native: Provide access to test cases generated by the compiler
Native. Platforms
KT-44321
Support Apple Silicon without Rosetta 2
Reflection
KT-18277
InvalidProtocolBufferException: Stream closed on multithreaded access to built-ins data in reflectionKT-44977
Reflection: ClassCastException caused by annotations with "AnnotationTarget.TYPE" usage on array attributes accessKT-47650
KClass::nestedClasses throws ClassCastException for script classes with type aliases
Tools. CLI
KT-47623
Deprecate -Xuse-experimentalKT-30778
kotlin-compiler.jar contains shaded but not relocated kotlinx.coroutinesKT-40979
CLI: Executing "kotlinc.bat" at a root path, errors are not reported with a correct filepathKT-40994
CLI: Add documentation for -J argument inkotlinc -help
KT-46764
CLI: Java record defined in a single file root is not resolved
Tools. Commonizer
KT-47433
[Commonizer] Commonize functions/properties with TA/Class types in signatureKT-47691
[Commonizer] Commonizevar
andval
propertiesKT-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-47133
Forbid cinterop commonization with hierarchical commonization turned offKT-47301
[Commonizer] Associative commonization
Tools. Compiler Plugins
KT-46723
Kotlin Lombok: JPS: config file is searched in directory relative to compiler daemonKT-46739
@SerialInfo NPE with default parameter
Tools. Daemon
KT-47152
Incremental Compilation with Kotlin compile daemon and JDK 17 fails with IllegalAccessException
Tools. Gradle
New Features
KT-45757
Add an easier way to explicitly set Kotlin daemon jvm arguments
Fixes
KT-47940
Kotlin JVM toolchain breaks configuration cacheKT-46626
kotlin-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-47520
Kotlin and Java target compatibility check produces false positive on using Gradle toolchainsKT-46978
Duplicate resource errors on gradle 7 with multi-module multiplatform project with withJavaKT-27687
Empty directories in source set causes gradle cache miss for KotlinCompile taskKT-47635
Kotlin version conflict on using 'noarg' Gradle pluginKT-47636
Kotlin version conflict on using 'sam-with-receiver' Gradle pluginKT-47354
Kotlin version conflict on using 'allopen' Gradle pluginKT-45202
Kapt crashes with java.io.UTFDataFormatExceptionKT-13258
Kotlin compiler doesn't respect Gradle's "sourceCompatibility" and "targetCompatibility"KT-43095
Add support for Java Toolchain to the Gradle pluginKT-45611
KGP should declare JDK version as inputKT-47185
Migrate Gradle Integration tests to use cache redirectorKT-48226
Kotlin toolchain does not set 'jvmTarget' for Kotlin tasks on configuration cache reuseKT-44279
Kotlin-Android Gradle Plugin (KGP) should react to application of AGP rather than assume it was applied firstKT-44041
PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corrupted
Tools. Gradle. JS
KT-47436
KJS / IR: Compiler plugins not provided to link taskKT-46693
KJS: Update node.js version used inside gradle to latest 14.xKT-47559
KJS / Gradle: Run task created using eager API and breaks task configuration avoidanceKT-47176
KJS: Actualize NPM dependenciesKT-47154
KJS / Gradle: Compile task reads dependencies metadata from filesystem too long on large projectsKT-47114
KJS / IR: Could not resolvecoroutines-core-js
KT-43379
KJS / Gradle: On windows, an invalid regex is generated for Webpack ProgressPlugin
Tools. 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-47126
ios() target shortcuts should not include Apple Silicon by defaultKT-38111
Gradle DSL: rename useExperimentalAnnotation functionKT-47126
ios() target shortcuts should not include Apple Silicon by defaultKT-47612
Task :buildKotlinToolingMetadata is incompatible with Gradle configuration cacheKT-47611
Task :generateMetadataFileForKotlinMultiplatformPublication is incompatible with Gradle configuration cache
Tools. Gradle. Native
KT-42023
Kotlin Native Cocoapods plugin fails when Xcode project has custom CONFIGURATION namesKT-47653
Support multi arch build via embedAndSign taskKT-47078
Support Apple Silicon in cocoapods gradle pluginKT-47077
Support Apple Silicon in embedAndSign task
Tools. Incremental Compile
KT-27660
JS Incremental compilation fails with java.io.IOException: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0KT-36865
IC: "ArrayIndexOutOfBoundsException: Array index out of range: 0"KT-35532
Incremental compilation often fails on @JVMMultifileClassKT-19806
IncrementalPackagePartProvider cache corruption causes frontend exception
Tools. JPS
KT-47753
JPS: "IndexOutOfBoundsException: Index 0 out of bounds for length 0": Rebuild triggered due to IOOBE inkotlin.incremental.LookupStorage.<init>
KT-46804
Slow Kotlin incremental build: LookupStorage operationsKT-45763
Failing tests in KotlinIDE
Tools. Maven
KT-45689
JDK-16: kotlin-maven-plugin fails withIllegalAccessError: class com.intellij.util.io.FileChannelUtil
when using incremental compilation
Tools. Scripts
KT-43917
Gradle dependency conflict with resolutionStrategy failOnVersionConflict and kotlin 1.4KT-46646
Scripts: ArrayIndexOutOfBoundsException on an empty script running
Tools. REPL
KT-47783
REPL: Keywords completion appears after numeric and string literals
Tools. kapt
KT-47583
KaptJavaLog fails on Java 17 due to removed constructor in com.sun.tools.javac.util.LogKT-47347
KAPT: Stub generation in Gradle cache is not consistently relocatableKT-46651
KAPT: "Source file or directory not found" - kaptGenerateStubsDebugKotlin task does not track source files properly with configuration cache enabled
Checksums
File | Sha256 |
---|---|
kotlin-compiler-1.5.30.zip | 25eebdb9bb2e165e4ba8efbf8ff943c45d4fc39dbffc2c1caa059e8dd813675f |
kotlin-native-linux-x86_64-1.5.30.tar.gz | 1efad86f35543e3d5365dc6fe7dbde7f20e8330e70cf43b94d6a3f9080b2636f |
kotlin-native-macos-x86_64-1.5.30.tar.gz | de7e9f9601e5f91aa44c0d8629da8779afaf60d0622287d67a61e72432277001 |
kotlin-native-macos-aarch64-1.5.30.tar.gz | 7c04408bb98b59b4acc1c5a2c8837350a8ef0262bc19795da42c103e6a8c6bd0 |
kotlin-native-windows-x86_64-1.5.30.zip | 26ceb0ddc85636d459016d7824975bf82ba6e8f0526c1961604f85348a989dbf |