Fix KotlinReflectionInternalError on encountering 'clone' in a class

`RuntimeTypeMapper.mapSignature` threw exception because the descriptor
for `clone` was created manually in CloneableClassScope and therefore it
didn't have a JVM signature as in deserialized descriptors, and wasn't
recognized as a Java method either.

 #KT-22923 Fixed
This commit is contained in:
Alexander Udalov
2019-05-29 11:36:37 +02:00
parent 2857c62dba
commit 4c9e9b1f3a
3 changed files with 12 additions and 4 deletions
@@ -28,6 +28,6 @@ class CloneableClassScope(
)
companion object {
internal val CLONE_NAME = Name.identifier("clone")
val CLONE_NAME = Name.identifier("clone")
}
}