From 76cd20c5748b5d3871c96040e3b3a56df53e8d87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Peltier?= Date: Wed, 11 Apr 2018 14:08:34 +0200 Subject: [PATCH] KT-23721 Emit an error when 'tools.jar' is not into plugin classpath - Since warnings are discarded when there are others errors, replace the current warning by an error to always display the message and inform the user that its annotation processor is badly configured. Fix of https://youtrack.jetbrains.com/issue/KT-23721 --- .../src/org/jetbrains/kotlin/kapt3/Kapt3Plugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/kapt3/kapt3-compiler/src/org/jetbrains/kotlin/kapt3/Kapt3Plugin.kt b/plugins/kapt3/kapt3-compiler/src/org/jetbrains/kotlin/kapt3/Kapt3Plugin.kt index 04b60ffc399..cab3449fe01 100644 --- a/plugins/kapt3/kapt3-compiler/src/org/jetbrains/kotlin/kapt3/Kapt3Plugin.kt +++ b/plugins/kapt3/kapt3-compiler/src/org/jetbrains/kotlin/kapt3/Kapt3Plugin.kt @@ -229,7 +229,7 @@ class Kapt3ComponentRegistrar : ComponentRegistrar { try { Class.forName(JAVAC_CONTEXT_CLASS) } catch (e: ClassNotFoundException) { - logger.warn("'$JAVAC_CONTEXT_CLASS' class can't be found ('tools.jar' is absent in the plugin classpath). Kapt won't work.") + logger.error("'$JAVAC_CONTEXT_CLASS' class can't be found ('tools.jar' is absent in the plugin classpath). Kapt won't work.") return }