Use allScope when resolving classifiers of binary classes
Otherwise it might lead to the problems when reading class files from the source scope (e.g. a groovy file or an already compiled java file) Note that it may be reproduced only with Maven because in JPS and Gradle we reading source java files even when they're shouldn't be recompiled, while in Maven we read class files in the case #KT-17897 Fixed
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ class KotlinCliJavaFileManagerImpl(private val myPsiManager: PsiManager) : CoreJ
|
||||
return@getOrPut outerClass?.findInnerClass(classId.shortClassName)
|
||||
}
|
||||
|
||||
val resolver = ClassifierResolutionContext { findClass(it, searchScope) }
|
||||
val resolver = ClassifierResolutionContext { findClass(it, allScope) }
|
||||
|
||||
BinaryJavaClass(
|
||||
virtualFile,
|
||||
|
||||
Reference in New Issue
Block a user