Undesired automatic type conversion to kotlin types in OOLib when explicitly using java types
When creating a Java object, e.g. new_object('java.lang.String', S)
, the created object is actually the kotlin equivalent, bot the expected Java one. In fact, the solution is new_object(‘java.lang.String’, ‘<object:kotlin.String#234123’>)
As a consequence, traiting that object as a Java instance fails, e.g. in
new_object('java.lang.String', S), P := S.'CASE_INSENSITIVE_ORDER'.
leads to the error message 'There is no method on type kotlin.String which is named.. bla bla'.
Edited by Enrico Denti