Skip to content

Tag: annotation-processing

How to get annotation parameter in annotation processor

I’m writing my own annotation processor and I’m trying to get parameter of my annotation like in the code below in process method: What I get is An exception occurred: javax.lang.model.type.MirroredTypesException: Attempt to access Class objects for TypeMirrors [] during build. Anyone know how to get annotation data? Answer The documentation on the getAnnotation method explains why Class<?> objects are