diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java index 6d839c1277323..1a1355759037d 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/BeanGenerator.java @@ -1100,7 +1100,7 @@ private void implementCreateForSyntheticBean(ClassCreator beanCreator, BeanInfo List matchingIPs = new ArrayList<>(); for (InjectionPointInfo injectionPoint : bean.getDeployment().getInjectionPoints()) { - if (bean.equals(injectionPoint.getResolvedBean())) { + if (!injectionPoint.isSynthetic() && bean.equals(injectionPoint.getResolvedBean())) { matchingIPs.add(injectionPoint); } }