Do not retrieve parent of FQname for root

#KT-8642 Fixed
This commit is contained in:
Denis Zharkov
2015-07-28 16:04:38 +03:00
parent 8b537bc6dd
commit 0fba28a8f0
4 changed files with 111 additions and 1 deletions
@@ -158,7 +158,7 @@ class LazyJavaClassDescriptor(
?: FakePureImplementationsProvider.getPurelyImplementedInterface(fqName)
?: return null
if (purelyImplementedFqName.parent() != KotlinBuiltIns.BUILT_INS_PACKAGE_FQ_NAME) return null
if (purelyImplementedFqName.isRoot || purelyImplementedFqName.parent() != KotlinBuiltIns.BUILT_INS_PACKAGE_FQ_NAME) return null
val classDescriptor = c.module.builtIns.getBuiltInClassByNameNullable(purelyImplementedFqName.shortName()) ?: return null