Original issue created by lowasser@google.com on 2014-03-20 at 05:45 PM
Instances of an annotation interface generally return a random proxy class when getClass() is called on them; to get the actual annotation type you want .annotationType().
Enums with value-specific methods are a subclass of the actual enum type, and similarly, usually want getDeclaringClass().
Original issue created by lowasser@google.com on 2014-03-20 at 05:45 PM
Instances of an annotation interface generally return a random proxy class when getClass() is called on them; to get the actual annotation type you want .annotationType().
Enums with value-specific methods are a subclass of the actual enum type, and similarly, usually want getDeclaringClass().