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
@@ -5,7 +5,7 @@ public class A {
// FILE: B.java
public class B extends A {
public static vod bar() {}
public static void bar() {}
}
// FILE: 1.kt
@@ -48,4 +48,4 @@ class YN: Y() {
Y.<!UNRESOLVED_REFERENCE!>bar<!>()
YN.<!UNRESOLVED_REFERENCE!>bar<!>()
}
}
}
@@ -17,7 +17,7 @@ public open class B : A {
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// Static members
public open fun bar(): [ERROR : Unresolved java classifier: vod]!
public open fun bar(): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun foo(): kotlin.Unit
}
@@ -8,7 +8,7 @@ open class B: A()
// FILE: C.java
public class C extends B {
public static vod bar() {}
public static void bar() {}
}
// FILE: 2.kt
@@ -24,4 +24,4 @@ class D: C() {
C.bar()
D.<!UNRESOLVED_REFERENCE!>bar<!>()
}
}
}
@@ -24,7 +24,7 @@ public open class C : B {
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
// Static members
public open fun bar(): [ERROR : Unresolved java classifier: vod]!
public open fun bar(): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun foo(): kotlin.Unit
}