Skip to content

Commit

Permalink
Shift LanguageFeature.ErrorAboutDataClassCopyVisibilityChange to 2.2
Browse files Browse the repository at this point in the history
KT-11914

Some stats:
- Usages of `@ConsistentCopyVisibility` https://github.com/search?q=%22%40ConsistentCopyVisibility%22+lang%3AKotlin&type=code&p=1
  Right now, there are 225 files
- Usages of `-Xconsistent-data-class-copy-visibility` https://github.com/search?q=%22-Xconsistent-data-class-copy-visibility%22+lang%3AKotlin&type=code&p=1
  Right now, there are 60 files
- Usages of `@ExposedCopyVisibility` https://github.com/search?q=%22%40ExposedCopyVisibility%22+lang%3AKotlin&type=code&p=1
  Right now, there are 59 files

Reasons to shift it:
- The LC ticket is not approved yet
- It feels like a big breaking change
- The breaking change is not local, it affects declarations
- Only 3 months passes since the release of 2.0.20 (where the warning
  was introduced) till release of 2.1
- People migrate to 2.0 not as fast as they did to previous versions.
  There is a hypothesis, that more than usual amount of users will be
  migrating from K1 straight to 2.1
  • Loading branch information
nikitabobko authored and qodana-bot committed Oct 7, 2024
1 parent 8868b3d commit 6d6a9cc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ enum class LanguageFeature(
ProhibitTypealiasAsCallableQualifierInImport(KOTLIN_2_1, kind = BUG_FIX), // KT-64350
ProhibitConstructorAndSupertypeOnTypealiasWithTypeProjection(KOTLIN_2_1, kind = BUG_FIX), // KT-60305
JsExternalPropertyParameters(KOTLIN_2_1), // KT-65965
ErrorAboutDataClassCopyVisibilityChange(KOTLIN_2_1, kind = BUG_FIX), // KT-11914 Deprecation phase 2
CorrectSpecificityCheckForSignedAndUnsigned(KOTLIN_2_1, kind = OTHER), // KT-35305
AllowAccessToProtectedFieldFromSuperCompanion(KOTLIN_2_1), // KT-39868
CheckLambdaAgainstTypeVariableContradictionInResolution(KOTLIN_2_1, kind = OTHER), // KT-58310
Expand All @@ -350,6 +349,7 @@ enum class LanguageFeature(

// 2.2

ErrorAboutDataClassCopyVisibilityChange(KOTLIN_2_2, kind = BUG_FIX), // KT-11914 Deprecation phase 2
BreakContinueInInlineLambdas(KOTLIN_2_2), // KT-1436
UnstableSmartcastOnDelegatedProperties(KOTLIN_2_2, kind = BUG_FIX), // KT-57417
ReferencesToSyntheticJavaProperties(KOTLIN_2_2), // KT-8575
Expand Down

0 comments on commit 6d6a9cc

Please sign in to comment.