Is there any way around this? ```An annotation par...
# announcements
b
Is there any way around this?
Copy code
An annotation parameter must be a class literal (T::class)
I want to do something like
Copy code
myclass<myType>::class.java
It's looking like I'm going to have to define a class for each of my types 😞
d
blakelee: Unfortunately that is a limitation of the Java class file format, annotations can only contain constants as defined by the class file constant pool. That means you can only put classes in annotations, not actual types.
b
bummer. Thanks for the info