eclipse-archived / ceylon

The Ceylon compiler, language module, and command line tools
http://ceylon-lang.org
Apache License 2.0
395 stars 62 forks source link

Types.classForType returns "class [Ljava.lang.Object" for ObjectArray #7391

Closed MikhailMalyutin closed 5 years ago

MikhailMalyutin commented 5 years ago

Next code

    print(Types.classForType<ObjectArray<String>>()); 

prints class [Ljava.lang.Object; instead of class [Lceylon.language.String;

Workaround is next:

    print(Types.classForInstance(ObjectArray<String>(0)));
gavinking commented 5 years ago

Fixed, thanks for reporting!