From 54990e16c1fc17201499ff4be36c36c156e0fb24 Mon Sep 17 00:00:00 2001 From: Alexander Udalov Date: Wed, 18 Oct 2017 20:28:25 +0200 Subject: [PATCH] Report error if tools.jar is not found in javac-wrapper --- .../jetbrains/kotlin/cli/jvm/javac/JavacWrapperRegistrar.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/javac/JavacWrapperRegistrar.kt b/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/javac/JavacWrapperRegistrar.kt index 7aee6d7cf4e..1000be6759e 100644 --- a/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/javac/JavacWrapperRegistrar.kt +++ b/compiler/cli/src/org/jetbrains/kotlin/cli/jvm/javac/JavacWrapperRegistrar.kt @@ -20,7 +20,7 @@ import com.intellij.mock.MockProject import com.sun.tools.javac.util.Context import org.jetbrains.kotlin.asJava.LightClassGenerationSupport import org.jetbrains.kotlin.cli.common.CLIConfigurationKeys -import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity.STRONG_WARNING +import org.jetbrains.kotlin.cli.common.messages.CompilerMessageSeverity.ERROR import org.jetbrains.kotlin.cli.jvm.config.jvmClasspathRoots import org.jetbrains.kotlin.config.CompilerConfiguration import org.jetbrains.kotlin.config.JVMConfigurationKeys @@ -48,7 +48,7 @@ object JavacWrapperRegistrar { Class.forName(JAVAC_CONTEXT_CLASS) } catch (e: ClassNotFoundException) { - messageCollector.report(STRONG_WARNING, "'$JAVAC_CONTEXT_CLASS' class can't be found ('tools.jar' is not found)") + messageCollector.report(ERROR, "'$JAVAC_CONTEXT_CLASS' class can't be found ('tools.jar' is not found)") return false }