Do not create error types in deserialization on not found classes
For a class which cannot be resolved in the current deserialization session, create a special ClassDescriptor instance with an empty scope and put in the correct package under the current module. Codegen will perfectly map such class to its JVM signature (because only the precise FQ name is needed, which is available). For more details on this approach, see the issue description. #KT-4328 Fixed #KT-11497 Fixed
This commit is contained in:
+2
-2
@@ -1,8 +1,8 @@
|
||||
package test
|
||||
|
||||
public final annotation class Anno : kotlin.Annotation {
|
||||
public constructor Anno(/*0*/ e: [ERROR : test.E])
|
||||
public final val e: [ERROR : test.E]
|
||||
public constructor Anno(/*0*/ e: test.E)
|
||||
public final val e: test.E
|
||||
}
|
||||
|
||||
@test.Anno(e = Unresolved enum entry: test/E.ENTRY) public open class Class {
|
||||
|
||||
Reference in New Issue
Block a user