0

This is in annotation processing. I have a TypeElement about which I know that it is annotated with @Bind. I get the TypeElement with:

ProcessingEnvironment#getElementsAnnotatedWith(Bind.class)

@Bind looks like this:

public @interface Bind {
    Class<? extends Stuff>[] stuffArray();
}

I can do this:

typeElement.getAnnotation(Bind.class);

But I cannot do this, as it results in an MirroredTypesException:

typeElement.getAnnotation(Bind.class).stuffArray();

How do I get that array?

PaperTsar
  • 961
  • 1
  • 9
  • 22

0 Answers0