From 712c2b4931177aa66fd256f7fc0b7e305880a8c6 Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Thu, 1 Dec 2022 16:34:59 +0100 Subject: [PATCH] VertxProcessor - skip synthetic methods annotated with ConsumeEvent - fixes #29585 (cherry picked from commit b1664aa85a3272490807fbb6c18859f02f4a157e) --- .../main/java/io/quarkus/vertx/deployment/VertxProcessor.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extensions/vertx/deployment/src/main/java/io/quarkus/vertx/deployment/VertxProcessor.java b/extensions/vertx/deployment/src/main/java/io/quarkus/vertx/deployment/VertxProcessor.java index 7eeb82fb9f917..2bd342cb4020e 100644 --- a/extensions/vertx/deployment/src/main/java/io/quarkus/vertx/deployment/VertxProcessor.java +++ b/extensions/vertx/deployment/src/main/java/io/quarkus/vertx/deployment/VertxProcessor.java @@ -122,6 +122,9 @@ void collectEventConsumers( AnnotationStore annotationStore = beanRegistrationPhase.getContext().get(BuildExtension.Key.ANNOTATION_STORE); for (BeanInfo bean : beanRegistrationPhase.getContext().beans().classBeans()) { for (MethodInfo method : bean.getTarget().get().asClass().methods()) { + if (method.isSynthetic()) { + continue; + } AnnotationInstance consumeEvent = annotationStore.getAnnotation(method, CONSUME_EVENT); if (consumeEvent != null) { // Validate method params and return type