I have a property ```var requestClass: Class<*&...
# announcements
d
I have a property
Copy code
var requestClass: Class<*>
. When I set
Copy code
requestClass = Long::class.java
, it fails with the message
invalid type parameter: long
. Obviously, it takes
long
instead of
Long
and I have to write
Copy code
java.lang.Long::class.java
. Any ideas how to avoid this?