From 0625c1ea76fae17557a84a40f5705c815c30343b Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Sat, 27 May 2023 00:15:42 +0200 Subject: [PATCH] Minor, workaround an incremental compilation issue After the previous commit, IC does not recompile code related to CLI arguments parsing (likely due to KT-57919), so the resulting dist compiler doesn't work at all, and all related tests are failing. This "useless" override tricks the IC to recompile the class and all its subclasses. --- .../kotlin/cli/common/arguments/CommonToolArguments.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonToolArguments.kt b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonToolArguments.kt index 4cb09088147..ac4a6f8be72 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonToolArguments.kt +++ b/compiler/cli/cli-common/src/org/jetbrains/kotlin/cli/common/arguments/CommonToolArguments.kt @@ -95,4 +95,8 @@ abstract class CommonToolArguments : Freezable(), Serializable { checkFrozen() field = value } + + // This is a hack to workaround an issue that incremental compilation does not recompile CLI arguments classes after the change in + // the previous commit. This method can be removed after some time. + override fun equals(other: Any?): Boolean = super.equals(other) }