Report JVM runtime version inconsistency as errors instead of warnings

(cherry picked from commit f8fc7e94ac07d80f332149529b34297b7f0db82e)
This commit is contained in:
Alexander Udalov
2016-12-16 13:16:26 +03:00
parent e3f4b6e77e
commit 2ba18beb89
@@ -42,8 +42,7 @@ object JvmRuntimeVersionsConsistencyChecker {
private fun <T> T?.assertNotNull(message: () -> String): T =
if (this == null) fatal(message()) else this
// TODO replace with ERROR after bootstrapping
private val VERSION_ISSUE_SEVERITY = CompilerMessageSeverity.WARNING
private val VERSION_ISSUE_SEVERITY = CompilerMessageSeverity.ERROR
private const val META_INF = "META-INF"
private const val MANIFEST_MF = "$META_INF/MANIFEST.MF"