Kotlin 1.4.10
Contents
The release contents the JVM version of the Kotlin compiler, and also the Kotlin/Native compiler for the supported platforms: Linux, macOS and Windows.
Changelog
Compiler
Performance Improvements
KT-41149NI: Upgraded project from 1.3.72 to 1.4.0 hangs during buildKT-41335Kotlin Out of Memory When evaluating expressionKT-41400NI: Huge performance regression for kotlin compiler from 1.3.72 to 1.4.0 due to using list of dozen lambdas in a call
Fixes
KT-41005Coercion to Unit doesn't take into account nullability of a return type for lambdaKT-41043NI: StackOverflowError throughPostponedArgumentInputTypesResolver.getAllDeeplyRelatedTypeVariablesKT-41135Type Inference Regression For Property Delegate With Receiver TypeKT-41140Unresolved reference to parameter of a catch block from lambda expression on 1.4.0KT-41150IllegalStateException: Couldn't obtain compiled function body for public final inline funKT-41164NI: "IllegalStateException: Error type encountered" with callbackFlow builder inside conditionKT-41202Type inference fails in 1.4.0KT-41218HMPP: arrayList declarations are visible both from stdlib-common and stdlib-jvm and lead to false-positive resolution ambiguity in IDEKT-413081.4.0 Type inference regression in suspend blocks with elvis operator expressionsKT-41357ClassCastException for unstable smart cast on a property call receiverKT-41386NI: Type mismatch with generic type parametersKT-41426Operator compareTo is not called with nullable typeKT-41430Broken choosing overload by lambda return type inside builder inferenceKT-41470Wrong nullability assertion is generated when using the BuilderInference annotationKT-41482Add a fallback compiler flag to disable the unified null checks behavior
IDE
KT-41325SOE in IDEKotlinAsJavaSupportKT-41390Typo: equals & hashCode are written with the first uppercase letter
IDE. Code Style, Formatting
KT-41314Formatter: Frequent freezes when reformatting code (TrailingCommaPostFormatProcessor)
IDE. Debugger
KT-40417Coroutines Debugger: “No coroutine information found” in case of main() entry-point without explicit debug-artifact
IDE. Gradle. Script
KT-39542EA-218043: java.util.NoSuchElementException: No element of given type found (GradleBuildRootsManager)KT-41283Gradle scripts unable to support 1.4 language level features yet
IDE. Inspections and Intentions
KT-41264Disable “Redundant inner modifier” in 1.4.10KT-41395Inspection description misses a space (needs to be lowercase)
IDE. REPL
KT-40898REPL: "IllegalAccessError: tried to access field" caused by log4j
IDE. Wizards
KT-38921New project wizard: Backend/Console applications template with Groovy DSL generates build.gradle with KotlinCompile instead of compileKotlin
JavaScript
KT-38059Support arrays passed as named arguments to varargsKT-40964KJS / IR: don't generate "import" (short names) for external interfacesKT-41081KJS IR: nativeGetter, nativeSetter, nativeInvoke are not supported
Libraries
KT-41320Actual kotlin.test annotation typealiases are inaccessible in modular environment
Middle-end. IR
KT-41324IR: "Compilation failed: null" caused by StackOverflowError in compiler in multi-module project
Native. C and ObjC Import
KT-39762cinterop on 1.4-M2 doesn't include @deprecated Kotlin declaration for C declaration it fails to import
Native. ObjC Export
KT-39206New line characters in @deprecated annotation cause syntax error in Kotlin/native exported headerKT-40976"Unrecognized selector sent to instance" exception invoking suspending lambda from Swift in Native iOS project
Reflection
KT-40842"AssertionError: Built-in class kotlin.Any is not found" on java modular run
Tools. Compiler Plugins
KT-41321Upgrading to 1.4.0 fails compiling native with is not bound error
Tools. Gradle. Multiplatform
KT-41083Transitive dependency on an MPP with host-specific source sets fails to resolve: "Couldn't resolve metadata artifact..."
Tools. Gradle. Native
KT-40834Cannot build Kotlin Multiplatform project on Windows 10 64-bit when the Cocoapods plugin is applied
Tools. Scripts
KT-35925REPL: Springboot autoconfiguration problem (META-INF/spring.factories not found ?)
Tools. kapt
KT-41313kapt 1.4.0 throws "ZipException: zip END header not found", when Graal SVM jar in classpath
Checksums
| File | Sha256 |
|---|---|
| kotlin-compiler-1.4.10.zip | bb1a21d70e521a01ae104e99a082a6e7bb58699b86347049da521d175d0dace7 |
| kotlin-native-linux-1.4.10.tar.gz | daedd047cfacb9cff064eae705c54d2ed61ef44b61c1ec944066603b8e9a373c |
| kotlin-native-macos-1.4.10.tar.gz | e84f1622a6160a44e1f821d7539771a52389cdf3c9acaa94534b079a571503f3 |
| kotlin-native-windows-1.4.10.zip | 7728814be6f3f7906f9d55deff7ce15165c5a21f0f59ad412de815d1dab0ec1f |