Fix type deserialization failure when type alias was not found

It's crucial for decompilation as declarations are always being deserialized
with no dependencies

 #KT-12832 Fixed
This commit is contained in:
Denis Zharkov
2016-06-27 14:55:56 +03:00
parent 15ce4f8856
commit 067fe35b72
11 changed files with 131 additions and 23 deletions
@@ -140,7 +140,7 @@ class JavaTypeResolver(
// Note that this makes MISSING_DEPENDENCY_CLASS diagnostic messages not as precise as they could be in some corner cases.
private fun createNotFoundClass(javaType: JavaClassifierType): TypeConstructor {
val classId = parseCanonicalFqNameIgnoringTypeArguments(javaType.canonicalText)
return c.components.deserializedDescriptorResolver.components.notFoundClasses.get(classId, listOf(0))
return c.components.deserializedDescriptorResolver.components.notFoundClasses.getClass(classId, listOf(0))
}
private fun mapKotlinClass(javaType: JavaClassifierType, attr: JavaTypeAttributes, fqName: FqName): ClassDescriptor? {