Skip to content

Commit 04f320d

Browse files
committed
Daniel review
1 parent 024b175 commit 04f320d

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

docs/topics/compatibility-guides/compatibility-guide-23.md

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ perspective (for example, from Java) is out of the scope of this document.
3737
>
3838
> **Deprecation cycle**:
3939
>
40-
> - 2.2.0: report a warning when using `-language-version` with versions 1.8 and 1.9.
41-
> - 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.
40+
> - 2.2.0: report a warning when using `-language-version` with versions 1.8 and 1.9
41+
> - 2.3.0: raise the warning to an error for `-language-version` with version 1.8 on all platforms and for version 1.9 on non-JVM platforms
4242
4343
### Report upper-bound constraint violation errors for inferred types with typealiases
4444

@@ -64,8 +64,8 @@ perspective (for example, from Java) is out of the scope of this document.
6464
>
6565
> **Incompatible change type**: source
6666
>
67-
> **Short summary**: Prohibit adding the `@JvmSerializableLambda` annotation on `inline` and `crossinline` lambdas
68-
> because it has no effect. `inline` and `crossinline` lambdas are not serializable.
67+
> **Short summary**: You can no longer apply the `@JvmSerializableLambda` annotation to `inline` or `crossinline` lambdas.
68+
> These lambdas aren't serializable, so applying `@JvmSerializableLambda` had no effect.
6969
>
7070
> **Deprecation cycle**:
7171
>
@@ -97,7 +97,7 @@ perspective (for example, from Java) is out of the scope of this document.
9797
>
9898
> **Incompatible change type**: source
9999
>
100-
> **Short summary**: Kotlin now deprecates using `return` inside expression bodies when the function's return type is not
100+
> **Short summary**: Kotlin now deprecates using `return` inside expression bodies when the function's return type isn't
101101
> explicitly declared.
102102
>
103103
> **Deprecation cycle**:
@@ -113,7 +113,7 @@ perspective (for example, from Java) is out of the scope of this document.
113113
>
114114
> **Incompatible change type**: source
115115
>
116-
> **Short summary**: Kotlin now reports an error when attempting to inherit from a nullable typealias, consistent with
116+
> **Short summary**: Kotlin now reports an error when attempting to inherit from a nullable typealias, which is consistent with
117117
> how it already handles direct nullable supertypes.
118118
>
119119
> **Deprecation cycle**:
@@ -134,7 +134,7 @@ perspective (for example, from Java) is out of the scope of this document.
134134
>
135135
> **Deprecation cycle**:
136136
>
137-
> - 2.3.0: introduce new behavior; not applicable for progressive mode
137+
> - 2.3.0: introduce the new behavior; not applicable in progressive mode
138138
139139
### Prohibit reified type parameters from being inferred as intersection types
140140

@@ -145,11 +145,11 @@ perspective (for example, from Java) is out of the scope of this document.
145145
> **Incompatible change type**: source
146146
>
147147
> **Short summary**: Kotlin 2.3.0 prohibits situations where a reified type parameter is inferred to an intersection type,
148-
> due to the risk of incorrect runtime behavior.
148+
> as this could lead to incorrect runtime behavior.
149149
>
150150
> **Deprecation cycle**:
151151
>
152-
> - 2.1.0: report a warning when a reified type parameter is inferred to an intersection type
152+
> - 2.1.0: report a warning when a reified type parameter is inferred as an intersection type
153153
> - 2.3.0: raise the warning to an error
154154
155155
### Prohibit exposing less-visible types through type parameter bounds
@@ -241,27 +241,27 @@ perspective (for example, from Java) is out of the scope of this document.
241241
>
242242
> **Incompatible change type**: source
243243
>
244-
> **Short summary**: After being deprecated for a long time, the `InputStream.readBytes(estimatedSize: Int = DEFAULT_BUFFER_SIZE): ByteArray` function is hidden.
244+
> **Short summary**: After being deprecated for a long time, the `InputStream.readBytes(estimatedSize: Int = DEFAULT_BUFFER_SIZE): ByteArray` function is now hidden.
245245
>
246246
> **Deprecation cycle**:
247247
>
248248
> - 1.3.0: report a warning
249249
> - 1.5.0: raise the warning to an error
250250
> - 2.3.0: hide the function
251251
252-
### Unify Kotlin/Native stacktrace printing with other platforms
252+
### Unify Kotlin/Native stack trace printing with other platforms
253253

254254
> **Issue**: [KT-81431](https://youtrack.jetbrains.com/issue/KT-81431)
255255
>
256256
> **Component**: Kotlin/Native
257257
>
258258
> **Incompatible change type**: behavioral
259259
>
260-
> **Short summary**: When formatting an exception stacktrace, no additional causes are printed once a previously seen exception cause has already been printed.
260+
> **Short summary**: When formatting an exception stack trace, additional causes aren't printed if the same exception cause has already been printed.
261261
>
262262
> **Deprecation cycle**:
263263
>
264-
> - 2.3.20: Unify Kotlin/Native exception stacktrace formatting with other Kotlin platforms
264+
> - 2.3.20: Unify Kotlin/Native exception stack trace formatting with other Kotlin platforms
265265
266266
### Correct `Iterable<T>.intersect()` and `Iterable<T>.subtract()` behavior
267267

@@ -292,10 +292,6 @@ perspective (for example, from Java) is out of the scope of this document.
292292
> **Short summary**: In Kotlin 2.3, if you use both the `kotlin-dsl` **and** the `kotlin("jvm")` plugin in your Gradle
293293
> project, you may see a Gradle warning about an unsupported Kotlin Gradle plugin (KGP) version.
294294
>
295-
> **Deprecation cycle**:
296-
>
297-
> - 2.3.0: introduce a diagnostic that detects when the `kotlin-dsl` plugin is used with an incompatible language or API version of the compiler.
298-
>
299295
> **Migration steps**:
300296
>
301297
> In general, we don't recommend using both the `kotlin-dsl` and the `kotlin("jvm")` plugins in the same Gradle project. This setup isn't supported.
@@ -312,6 +308,10 @@ perspective (for example, from Java) is out of the scope of this document.
312308
> As a last resort, you can configure your project to use language version 2.1 or higher, which overrides the conflicting behavior of the `kotlin-dsl` plugin. However, we strongly recommend not doing so.
313309
>
314310
> If you experience difficulties during migration, reach out in the #gradle channel in our [Slack](https://surveys.jetbrains.com/s3/kotlin-slack-sign-up) for support.
311+
>
312+
> **Deprecation cycle**:
313+
>
314+
> - 2.3.0: introduce a diagnostic that detects when the `kotlin-dsl` plugin is used with an incompatible language or API version of the compiler
315315
316316
### Deprecate `kotlin-android` plugin for AGP versions 9.0.0 and later
317317

@@ -322,11 +322,11 @@ perspective (for example, from Java) is out of the scope of this document.
322322
> **Incompatible change type**: source
323323
>
324324
> **Short summary**: In Kotlin 2.3.0, the `org.jetbrains.kotlin.android` plugin is deprecated when using Android Gradle plugin (AGP) versions 9.0.0 or later.
325-
> Starting with AGP 9.0.0, [AGP provides built-in support for Kotlin](https://kotl.in/gradle/agp-built-in-kotlin), so the `kotlin-android` plugin is no longer needed.
325+
> Starting with AGP 9.0.0, [AGP provides built-in support for Kotlin](https://kotl.in/gradle/agp-built-in-kotlin), so the `kotlin-android` plugin is no longer required.
326326
>
327327
> **Deprecation cycle**:
328328
>
329-
> - 2.3.0: report a warning when the `kotlin-android` plugin is used with AGP versions 9.0.0 or later, and both the `android.builtInKotlin` and `android.newDsl=false` Gradle properties are set to `false`.
329+
> - 2.3.0: report a warning when the `kotlin-android` plugin is used with AGP versions 9.0.0 or later, and both the `android.builtInKotlin` and `android.newDsl=false` Gradle properties are set to `false`
330330
331331
### Deprecate `testApi` configuration
332332

@@ -376,9 +376,9 @@ perspective (for example, from Java) is out of the scope of this document.
376376
>
377377
> **Short summary**: Kotlin 2.3.0 removes the `closureTo()`, `createResultSet()` functions from the `closure` DSL since they
378378
> are no longer used. In addition, the `KotlinToolingVersionOrNull()` function is removed. Use the `KotlinToolingVersion()` function instead.
379-
>
380379
>
381380
> **Deprecation cycle**:
381+
>
382382
> - 1.7.20: report an error
383383
> - 2.3.0: remove the functions
384384
@@ -475,7 +475,8 @@ perspective (for example, from Java) is out of the scope of this document.
475475
> * `TypeScriptValidationTask`
476476
> * `YarnRootExtension`
477477
>
478-
> These classes were never intended to be subclassed. All use cases for subclassing should now be covered by the class instances exposed through our extensions.
478+
> These classes were never intended to be subclassed. All use cases for subclassing should now be covered by
479+
> the configuration blocks provided by the Kotlin Gradle plugin DSL.
479480
> If the existing APIs for these tasks don't meet your needs for setting up test runs or the JavaScript runtime,
480481
> share your feedback in [YouTrack](https://youtrack.jetbrains.com/issue/KT-75869).
481482
>
@@ -635,7 +636,7 @@ perspective (for example, from Java) is out of the scope of this document.
635636
636637
### Deprecate `destinationDir` in `CInteropProcess`
637638

638-
> **Issue**: [KT-74910(https://youtrack.jetbrains.com/issue/KT-74910)
639+
> **Issue**: [KT-74910](https://youtrack.jetbrains.com/issue/KT-74910)
639640
>
640641
> **Component**: Gradle
641642
>

0 commit comments

Comments
 (0)