Improve diagnostics for runtime versions consistency checker

- report the diagnostic on the actual problematic file
- output the list of all runtime jars if min version != max version
This commit is contained in:
Alexander Udalov
2016-12-12 19:17:52 +03:00
parent d3e5580ab9
commit 2c527d89ab
4 changed files with 46 additions and 40 deletions
@@ -28,14 +28,15 @@ data class CompilerMessageLocation private constructor(
path + (if (line != -1 || column != -1) " ($line:$column)" else "")
companion object {
@JvmField val NO_LOCATION: CompilerMessageLocation = CompilerMessageLocation(null, -1, -1, null)
@JvmField
val NO_LOCATION: CompilerMessageLocation = create(null)
@JvmStatic fun create(
path: String?,
line: Int,
column: Int,
lineContent: String?
): CompilerMessageLocation =
@JvmStatic
fun create(path: String?): CompilerMessageLocation =
CompilerMessageLocation(path, -1, -1, null)
@JvmStatic
fun create(path: String?, line: Int, column: Int, lineContent: String?): CompilerMessageLocation =
if (path == null) NO_LOCATION else CompilerMessageLocation(path, line, column, lineContent)
private val serialVersionUID: Long = 8228357578L