| Hello Andrew Rouse
AnnotatedType.getMethods() returns default methods inherited from interfaces
The AT inherits the method from interface (unless it overrides it of course), that's why it can "see" it.
@WithAnnotations does not consider annotations on these methods when selecting types for the ProcessAnnotatedType event.
The annotated type is created from the bean implementing the interface, not the interface itself. While it inherits the methods, it does not necessarily need to inherit annotations. For starters, the annotation itself needs to have @Inherited on it and even then, there are some limitations mentioned in this CDI spec part (metadata inheritance). |