Skip to content

Commit 4865a5d

Browse files
committed
chore: remove lang versions in 2.2 compat guide
1 parent 04654ad commit 4865a5d

File tree

3 files changed

+26
-12
lines changed

3 files changed

+26
-12
lines changed

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,23 @@ perspective (for example, from Java) is out of the scope of this document.
2323

2424
## Language
2525

26+
### Drop support in `-language-version` for 1.6 and 1.7
27+
28+
> **Issue**: [KT-71793](https://youtrack.jetbrains.com/issue/KT-71793)
29+
>
30+
> **Component**: Compiler
31+
>
32+
> **Incompatible change type**: source
33+
>
34+
> **Short summary**: Starting with Kotlin 2.2, the compiler no longer supports [`-language-version=1.6`](compiler-reference.md#language-version-version) or `-language-version=1.7`.
35+
> This means that language feature sets older than 1.8 are no longer supported. However, the language itself remains
36+
> fully backward compatible with Kotlin 1.0.
37+
>
38+
> **Deprecation cycle**:
39+
>
40+
> - 2.1.0: report a warning when using `-language-version` with versions 1.6 and 1.7
41+
> - 2.2.0: report a warning when using `-language-version` with versions 1.8 and 1.9; raise the warning to an error for versions 1.6 and 1.7
42+
2643
### Enable invokedynamic for annotated lambdas by default
2744

2845
> **Issue**: [KTLC-278](https://youtrack.jetbrains.com/issue/KTLC-278)

docs/topics/compiler-reference.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ Core plugins and their options are listed in the [Core compiler plugins](compone
8484
8585
### -language-version _version_
8686
87-
Provide source compatibility with the specified version of Kotlin.
87+
This option sets the supported syntax and semantics according to the specified language version. For example, using
88+
Kotlin compiler version 2.2.0 with `-language-version=1.9` lets you use only the language features and standard library APIs from
89+
version 1.9 or earlier. This can help with a gradual migration to newer Kotlin versions.
8890
8991
### -api-version _version_
9092

docs/topics/whatsnew/whatsnew22.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1319,8 +1319,11 @@ If you encounter any issues that make you disable these feature flags, please re
13191319
This section highlights important breaking changes and deprecations worth noting. See our [Compatibility guide](compatibility-guide-22.md)
13201320
for a complete overview of all breaking changes and deprecations in this release.
13211321
1322-
* Starting with Kotlin 2.2.0, support for the [](ant.md) build system is deprecated. Kotlin support for Ant hasn't been
1323-
in active development for a long time, and there are no plans to maintain it further due to its relatively small user base.
1322+
* Starting with Kotlin 2.2.0, the compiler [no longer supports `-language-version=1.6` or `-language-version=1.7`](compatibility-guide-22.md#drop-support-in-language-version-for-1-6-and-1-7).
1323+
Language feature sets older than 1.8 aren't supported but the language itself remains fully backward compatible with Kotlin 1.0.
1324+
1325+
* Support for the [](ant.md) build system is deprecated. Kotlin support for Ant hasn't been in active development for a
1326+
long time, and there are no plans to maintain it further due to its relatively small user base.
13241327
13251328
We plan to remove Ant support in 2.3.0. However, Kotlin remains open to [contribution](contribute.md). If you're
13261329
interested in becoming an external maintainer for Ant, leave a comment with the "jetbrains-team" visibility setting in [this YouTrack issue](https://youtrack.jetbrains.com/issue/KT-75875/).
@@ -1364,15 +1367,7 @@ for a complete overview of all breaking changes and deprecations in this release
13641367

13651368
This release brings notable documentation changes, including the migration of Kotlin Multiplatform documentation to the [KMP portal](https://kotlinlang.org/docs/multiplatform/get-started.html).
13661369

1367-
Additionally, we launched a documentation survey, created new pages and tutorials, and revamped existing ones.
1368-
1369-
### Kotlin's documentation survey
1370-
1371-
We're looking for genuine feedback to make the Kotlin documentation better.
1372-
1373-
The survey takes around 15 minutes to complete, and your input will help shape the future of Kotlin docs.
1374-
1375-
[Take the survey here](https://surveys.jetbrains.com/s3/Kotlin-Docs-2025).
1370+
Additionally, we created new pages and tutorials, and revamped existing ones.
13761371

13771372
### New and revamped tutorials
13781373

0 commit comments

Comments
 (0)