v2.2.20
What's New
Kotlin 2.2.20 delivers significant improvements to the Analysis API with 50+ bug fixes and performance enhancements, enables JVM default interface methods by default for better Java interoperability, and substantially improves Kotlin/Wasm exception handling and type safety. The release focuses on stability and developer experience across IDE support, compiler diagnostics, and multiplatform development.
Highlights
- Enable JVM default interface methods by default with -Xjvm-default=all-compatibility
- New KaExpressionInformationProvider API for lambda result usage analysis
- Kotlin/Wasm exception handling improvements for JavaScriptCore and JS interop
- Performance optimizations for Analysis API scope resolution and FIR compilation
- Support for context parameters in type positions and dangling modifier lists
- Enhanced unused return value checker with @CheckReturnValue annotation support
- Kotlin/Wasm ClassCastException improvements with detailed type mismatch messages
Breaking Changes
- JVM default interface methods now generated by default, may affect binary compatibility with older JVM versions
- Rename KaPropertyAccessorSymbol#isCustom to isNotDefault in Analysis API
Deprecations
- Remove deprecated Analysis API surface in favor of new KaExpressionInformationProvider
- Deprecate -Xextended-compiler-checks compiler flag
Related Articles
Kotlin 2.2.20 Released
Kotlin 2.2.20 brings Kotlin/Wasm to Beta, Swift export available by default for KMP, stable cross-platform compilation for libraries, Long-to-BigInt compilation in JS, and stack canaries for Native.
Recent Releases
All releases →
v1.9.0
Jul 6, 2023
Release Notes →
v1.8.22
Jun 8, 2023
Release Notes →
v1.8.21
Apr 25, 2023
Release Notes →
v1.8.20
Apr 3, 2023
Release Notes →
v1.8.10
Feb 2, 2023
Release Notes →
v1.8.0
Dec 28, 2022
Release Notes →
v1.7.22
Nov 28, 2022
Release Notes →
v1.7.21
Nov 9, 2022
Release Notes →
v1.7.20
Sep 29, 2022
Release Notes →
v1.7.10
Jul 8, 2022
Release Notes →
v1.7.0
Jun 9, 2022
Release Notes →