vendredi 18 septembre 2015

Kotlin M13 replacement for javaClass

In M12 I was using javaClass<Car>() to get a java class object (equivalent to Car.class). So for example I could do javaClass<Car>().getName(). In M13 javaClass<Car>() is not found. I looked in the docs and it seems they haven't been updated, they say to use Car::class.java but compiler says

Unresolved Reference: java

What is the equivalent to Car.class in M13?





Aucun commentaire:

Enregistrer un commentaire