From 70144f800394fe88874e430240831d2fd16bb80e Mon Sep 17 00:00:00 2001 From: Dmitry Savvinov Date: Mon, 16 Jul 2018 11:00:48 +0300 Subject: [PATCH] Make warning about usage of -XX-flags less scary --- compiler/cli/src/org/jetbrains/kotlin/cli/common/CLITool.kt | 2 +- compiler/testData/cli/jvm/internalArgDisableLanguageFeature.out | 2 +- compiler/testData/cli/jvm/internalArgEmptyFeatureName.out | 2 +- compiler/testData/cli/jvm/internalArgEnableLanguageFeature.out | 2 +- compiler/testData/cli/jvm/internalArgMissingModificator.out | 2 +- compiler/testData/cli/jvm/internalArgUnrecognizedFeature.out | 2 +- .../testData/cli/jvm/internalArgumentOverrideExtraArgument.out | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/compiler/cli/src/org/jetbrains/kotlin/cli/common/CLITool.kt b/compiler/cli/src/org/jetbrains/kotlin/cli/common/CLITool.kt index 786de45824a..81e973d67d9 100644 --- a/compiler/cli/src/org/jetbrains/kotlin/cli/common/CLITool.kt +++ b/compiler/cli/src/org/jetbrains/kotlin/cli/common/CLITool.kt @@ -135,7 +135,7 @@ abstract class CLITool { "ATTENTION!\n" + "This build uses internal compiler arguments:\n" + arguments.internalArguments.joinToString(prefix = "\n", postfix = "\n\n", separator = "\n") + - "This mode is strictly prohibited for production use,\n" + + "This mode is not recommended for production use,\n" + "as no stability/compatibility guarantees are given on\n" + "compiler or generated code. Use it at your own risk!\n" ) diff --git a/compiler/testData/cli/jvm/internalArgDisableLanguageFeature.out b/compiler/testData/cli/jvm/internalArgDisableLanguageFeature.out index 29cfdc344b9..b9a4d8b59c6 100644 --- a/compiler/testData/cli/jvm/internalArgDisableLanguageFeature.out +++ b/compiler/testData/cli/jvm/internalArgDisableLanguageFeature.out @@ -3,7 +3,7 @@ This build uses internal compiler arguments: -XXLanguage:-SoundSmartCastsAfterTry -This mode is strictly prohibited for production use, +This mode is not recommended for production use, as no stability/compatibility guarantees are given on compiler or generated code. Use it at your own risk! diff --git a/compiler/testData/cli/jvm/internalArgEmptyFeatureName.out b/compiler/testData/cli/jvm/internalArgEmptyFeatureName.out index c5a05195b90..d757024b328 100644 --- a/compiler/testData/cli/jvm/internalArgEmptyFeatureName.out +++ b/compiler/testData/cli/jvm/internalArgEmptyFeatureName.out @@ -3,7 +3,7 @@ This build uses internal compiler arguments: -XXLanguage:+ -This mode is strictly prohibited for production use, +This mode is not recommended for production use, as no stability/compatibility guarantees are given on compiler or generated code. Use it at your own risk! diff --git a/compiler/testData/cli/jvm/internalArgEnableLanguageFeature.out b/compiler/testData/cli/jvm/internalArgEnableLanguageFeature.out index 44005ca52e5..59a6e106708 100644 --- a/compiler/testData/cli/jvm/internalArgEnableLanguageFeature.out +++ b/compiler/testData/cli/jvm/internalArgEnableLanguageFeature.out @@ -3,7 +3,7 @@ This build uses internal compiler arguments: -XXLanguage:+SoundSmartCastsAfterTry -This mode is strictly prohibited for production use, +This mode is not recommended for production use, as no stability/compatibility guarantees are given on compiler or generated code. Use it at your own risk! diff --git a/compiler/testData/cli/jvm/internalArgMissingModificator.out b/compiler/testData/cli/jvm/internalArgMissingModificator.out index 621e19abed3..238fafd19eb 100644 --- a/compiler/testData/cli/jvm/internalArgMissingModificator.out +++ b/compiler/testData/cli/jvm/internalArgMissingModificator.out @@ -3,7 +3,7 @@ This build uses internal compiler arguments: -XXLanguage:SoundSmartCastAfterTry -This mode is strictly prohibited for production use, +This mode is not recommended for production use, as no stability/compatibility guarantees are given on compiler or generated code. Use it at your own risk! diff --git a/compiler/testData/cli/jvm/internalArgUnrecognizedFeature.out b/compiler/testData/cli/jvm/internalArgUnrecognizedFeature.out index a757a1a6d38..048ac12dc93 100644 --- a/compiler/testData/cli/jvm/internalArgUnrecognizedFeature.out +++ b/compiler/testData/cli/jvm/internalArgUnrecognizedFeature.out @@ -3,7 +3,7 @@ This build uses internal compiler arguments: -XXLanguage:+UnknownFeature -This mode is strictly prohibited for production use, +This mode is not recommended for production use, as no stability/compatibility guarantees are given on compiler or generated code. Use it at your own risk! diff --git a/compiler/testData/cli/jvm/internalArgumentOverrideExtraArgument.out b/compiler/testData/cli/jvm/internalArgumentOverrideExtraArgument.out index 44005ca52e5..59a6e106708 100644 --- a/compiler/testData/cli/jvm/internalArgumentOverrideExtraArgument.out +++ b/compiler/testData/cli/jvm/internalArgumentOverrideExtraArgument.out @@ -3,7 +3,7 @@ This build uses internal compiler arguments: -XXLanguage:+SoundSmartCastsAfterTry -This mode is strictly prohibited for production use, +This mode is not recommended for production use, as no stability/compatibility guarantees are given on compiler or generated code. Use it at your own risk!