Implement supertype access methods in KtLightClassForFacade without delegate access (EA-92490 - ISE: KtLightClassForFacade.getClsDelegate)

This commit is contained in:
Dmitry Jemerov
2016-12-02 17:12:05 +03:00
parent 48513c7b1d
commit d6cd1486c6
@@ -214,6 +214,18 @@ class KtLightClassForFacade private constructor(
return baseClass.qualifiedName == CommonClassNames.JAVA_LANG_OBJECT
}
override fun getSuperClass(): PsiClass? {
return JavaPsiFacade.getInstance(project).findClass(CommonClassNames.JAVA_LANG_OBJECT, resolveScope)
}
override fun getSupers(): Array<PsiClass> {
return superClass?.let { arrayOf(it) } ?: arrayOf()
}
override fun getSuperTypes(): Array<PsiClassType> {
return arrayOf(PsiType.getJavaLangObject(manager, resolveScope))
}
override fun hashCode() = hashCode
private fun computeHashCode(): Int {