Skip to content

Commit

Permalink
VertxProcessor - skip synthetic methods annotated with ConsumeEvent
Browse files Browse the repository at this point in the history
- fixes quarkusio#29585

(cherry picked from commit b1664aa)
  • Loading branch information
mkouba authored and gsmet committed Dec 2, 2022
1 parent e37cf85 commit 24e5a8d
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit 24e5a8d

Please sign in to comment.