OOLib does not recognise kotlin basic types
Unexpected failure occurs when trying to obtain a reference to a kotlin basic types, as in
type('kotlin.Int', X).
Note: developer reports that the standard implementation for the type primitive exploits Java reflection to retrieve the "corresponding" Class
instance, which is then mapped onto the "corresponding" KClass
. However, while this approach works when the Java names and Kotlin names coincide (that is, for all "standard" classes), it fails for types introduced by Kotlin as its own aliases -- e.g. Int, String, etc.
An ad-hoc treatment should be provided to bypass the problem and ensure a coherent behaviour at the user level.