From c0ffbe03c65432cf14501597ad2f36e82c420d89 Mon Sep 17 00:00:00 2001 From: Mikhael Bogdanov Date: Thu, 2 Dec 2021 10:17:24 +0100 Subject: [PATCH] Remove '-Xjvm-default-allow-non-default-inheritance' flag. Enable such inheritance by default #KT-47000 Fixed --- .../arguments/K2JVMCompilerArguments.kt | 4 --- .../kotlin/config/JvmAnalysisFlags.kt | 3 -- .../resolve/jvm/checkers/JvmDefaultChecker.kt | 29 +------------------ .../diagnostics/DefaultErrorMessagesJvm.java | 1 - .../resolve/jvm/diagnostics/ErrorsJvm.java | 1 - .../LanguageVersionSettingsBuilder.kt | 1 - .../directives/LanguageSettingsDirectives.kt | 4 --- .../defaults/nonDefaultInheritance/simple.kt | 1 - .../defaults/nonDefaultInheritance/simple2.kt | 1 - .../nonDefaultInheritance/specialization.kt | 1 - .../nonDefaultInheritance/superCall.kt | 1 - .../jvmDefault/jvmDefaultInInheritance.kt | 6 ++-- .../annotations/jvmDefault/superCall.kt | 8 ++--- .../jvmDefault/superCallAmbiguity.kt | 4 +-- .../jvmDefault/superCallAmbiguity3.kt | 6 ++-- .../CompileKotlinAgainstCustomBinariesTest.kt | 2 +- 16 files changed, 14 insertions(+), 59 deletions(-) diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt index d040a836bda..b7c200665f1 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt +++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/K2JVMCompilerArguments.kt @@ -333,9 +333,6 @@ class K2JVMCompilerArguments : CommonCompilerArguments() { ) var jvmDefault: String by FreezableVar(JvmDefaultMode.DEFAULT.description) - @Argument(value = "-Xjvm-default-allow-non-default-inheritance", description = "Allow inheritance from 'all*' modes for 'disable' one") - var jvmDefaultAllowDisableAgainstAll: Boolean by FreezableVar(false) - @Argument( value = "-Xdefault-script-extension", valueDescription = "