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:
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test;
|
||||
|
||||
public interface Bar {
|
||||
void bar();
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
package test;
|
||||
|
||||
public interface Foo {
|
||||
Bar getBar();
|
||||
}
|
||||
+10
@@ -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
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
import test.*
|
||||
|
||||
fun test(f: Foo) {
|
||||
val bar = f.getBar()
|
||||
bar.bar()
|
||||
}
|
||||
Reference in New Issue
Block a user