You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> **Short summary**: Kotlin 2.3 introduces language version 2.3 and removes support for language version1.8.
35
-
> Support for languageversion1.9 is also removed for non-JVM platforms. Language versions 1.8 and 1.9 are deprecated.
34
+
> **Short summary**: Starting with Kotlin 2.3, the compiler no longer supports [`-language-version=1.8`](compiler-reference.md#language-version-version).
35
+
> Support for `-language-version=1.9` is also removed for non-JVM platforms.
36
36
>
37
37
> **Deprecation cycle**:
38
38
>
39
-
> - 2.2.0: report a warning for languageversions 1.8 and 1.9
39
+
> - 2.2.0: report a warning when using `-language-version` with versions 1.8 and 1.9.
40
40
> - 2.3.0: raise the warning to an error for language version 1.8 on all platforms and for language version 1.9 on non-JVM platforms.
41
41
42
-
### Enable invokedynamic for annotated lambdas by default
42
+
### Handle `UPPER_BOUND_VIOLATED` on implicit type arguments
> **Short summary**: Lambdas with annotations now use `invokedynamic` through `LambdaMetafactory` by default, aligning their behavior with Java lambdas.
51
-
> This affects reflection-based code that relied on retrieving annotations from generated lambda classes.
52
-
> To revert to the old behavior, use the `-Xindy-allow-annotated-lambdas=false` compiler option.
178
+
> **Short summary**: Kotlin 2.3 deprecates `Char.toX()` and `X.toChar()` conversions for numeric types and introduces new,
179
+
> explicit APIs for accessing a character's code and digit value.
53
180
>
54
181
> **Deprecation cycle**:
55
182
>
56
-
> - 2.2.0: enable `invokedynamic` for annotated lambdas by default
183
+
> - 1.4.30: introduce new functions as Experimental
184
+
> - 1.5.0: promote the new functions to Stable; report warnings for old functions with suggestions for replacements
185
+
> - 2.3.0: raise the warnings to errors
57
186
58
187
## Standard library
59
188
60
189
### Deprecate `String.subSequence(start, end)` function
@@ -141,8 +270,7 @@ perspective (for example, from Java) is out of the scope of this document.
141
270
> **Incompatible change type**: behavioral
142
271
>
143
272
> **Short summary**: The [`Iterable<T>.intersect()`](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/intersect.html) and [`Iterable<T>.subtract()`](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/subtract.html) functions now test membership for each
144
-
> receiver element before adding it to the result set.
145
-
> The result set compares elements using `Any::equals`,
273
+
> receiver element before adding it to the result set. The result set compares elements using `Any::equals`,
146
274
> ensuring correct results even when the argument collection uses referential equality (for example, `IdentityHashMap.keys˙).
0 commit comments