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:
+1
-1
@@ -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? {
|
||||
|
||||
Reference in New Issue
Block a user