Improve sorting of compiler messages in GroupingMessageCollector
Ensure that messages reported on a file but with no line information are reported before diagnostics related to code. This fixes Java9ModulesIntegrationTest.testSeveralModulesWithTheSameName on some machines
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
$TMP_DIR$/dependency2.jar: warning: the root is ignored because a module with the same name 'dependency' has been found earlier on the module path at: $TMP_DIR$/dependency1.jar
|
||||
compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:2:8: error: unresolved reference: bar
|
||||
import bar.Bar
|
||||
^
|
||||
@@ -7,5 +8,4 @@ compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:6:12:
|
||||
compiler/testData/javaModules/severalModulesWithTheSameName/main/usage.kt:6:18: error: unresolved reference: Bar
|
||||
val b: Bar = Bar()
|
||||
^
|
||||
$TMP_DIR$/dependency2.jar: warning: the root is ignored because a module with the same name 'dependency' has been found earlier on the module path at: $TMP_DIR$/dependency1.jar
|
||||
COMPILATION_ERROR
|
||||
|
||||
Reference in New Issue
Block a user