-
Bug
-
Resolution: Done
-
Minor
-
3.0.5.Final
-
None
AnnotatedType.getMethods() returns default methods inherited from interfaces, but @WithAnnotations does not consider annotations on these methods when selecting types for the ProcessAnnotatedType event.
The Javadoc for WithAnnotations seems to say it should be consistent with spec section 11.4. Alternative Metadata Sources which includes the description of AnnotatedType.getMethods().
Section 11.4 only talks about methods from the class and its superclasses and makes no mention of default methods from interfaces.
I'm not sure whether default methods inherited from interfaces should be included here, but I would expect AnnotatedType.getMethods() and WithAnnotations to be consistent.
- is related to
-
WFLY-11636 WeldClassFileInfo#containsAnnotation() should consider interface default methods
- Closed