Yeah, I agree, I wasn't sure whether AT.getMethods() should return default methods from interfaces either, or indeed whether interceptors should bind to them. I did a little more digging. OpenLiberty doesn't currently provide an implementation of ClassFileServices so the WithAnnotations check is done by RequiredAnnotationDiscovery.containsAnnotation(BackedAnnotatedType<?>, Class<Annotation>) The AnnotatedMethod objects for getMethods() are created in org.jboss.weld.annotated.slim.backed.BackedAnnotatedType.BackedAnnotatedMethods.computeValue(). This class was updated under WELD-2093 to support interception of default methods. |