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 2b31166 commit 712c2b4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
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 712c2b4

Please sign in to comment.