diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationStore.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationStore.java index 67e4fc4c78e37..dc3557562f721 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationStore.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/AnnotationStore.java @@ -114,7 +114,7 @@ private Collection getOriginalAnnotations(AnnotationTarget t Collection annotations; switch (target.kind()) { case CLASS: - annotations = target.asClass().classAnnotations(); + annotations = target.asClass().declaredAnnotations(); break; case METHOD: // Note that the returning collection also contains method params annotations diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java index 2438fe6045ac9..79b90f70aa15a 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/InterceptorInfo.java @@ -9,12 +9,14 @@ import java.util.List; import java.util.Set; +import jakarta.enterprise.inject.spi.DefinitionException; import jakarta.enterprise.inject.spi.InterceptionType; import org.jboss.jandex.AnnotationInstance; import org.jboss.jandex.AnnotationTarget; import org.jboss.jandex.ClassInfo; import org.jboss.jandex.DotName; +import org.jboss.jandex.FieldInfo; import org.jboss.jandex.MethodInfo; import org.jboss.jandex.Type; import org.jboss.jandex.Type.Kind; @@ -46,6 +48,7 @@ public class InterceptorInfo extends BeanInfo implements Comparable(), injections, null, null, false, Collections.emptyList(), null, false, null, priority); this.bindings = bindings; + AnnotationStore store = beanDeployment.getAnnotationStore(); List aroundInvokes = new ArrayList<>(); List aroundConstructs = new ArrayList<>(); List postConstructs = new ArrayList<>(); @@ -57,20 +60,34 @@ public class InterceptorInfo extends BeanInfo implements Comparable