Hello [~azquelt]
bq. 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.
bq. @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)|http://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#inheritance].
EDIT: Didn't realize we are talking member-level metadata, {{@Inherited}} works only on [types|https://docs.oracle.com/javase/8/docs/api/java/lang/annotation/Inherited.html] |
|