Fix multiple 'unresolved java classifier' errors

Use the same component (NotFoundClasses) as in loading of compiled Kotlin
symbols.

Some tests were changed to avoid a diagnostic that is now reported when a
non-found class is encountered in a signature (e.g. staticMethod.1.java where
JDK seems to be not configured)

 #KT-10493 Fixed
 #KT-10820 Fixed
 #KT-11368 Fixed
This commit is contained in:
Alexander Udalov
2016-03-17 15:51:25 +03:00
parent 873cf439de
commit e915e1548c
34 changed files with 468 additions and 314 deletions
@@ -0,0 +1,5 @@
package test;
public interface Bar {
void bar();
}
@@ -0,0 +1,5 @@
package test;
public interface Foo {
Bar getBar();
}
@@ -0,0 +1,10 @@
compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/source.kt:4:17: error: cannot access class 'test.Bar'. Check your module classpath for missing or conflicting dependencies
val bar = f.getBar()
^
compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/source.kt:5:5: error: cannot access class 'test.Bar'. Check your module classpath for missing or conflicting dependencies
bar.bar()
^
compiler/testData/compileKotlinAgainstCustomBinaries/missingDependencyJava/source.kt:5:9: error: unresolved reference: bar
bar.bar()
^
COMPILATION_ERROR
@@ -0,0 +1,6 @@
import test.*
fun test(f: Foo) {
val bar = f.getBar()
bar.bar()
}