Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1139

Business method interceptor bindings do not include bindings declared as meta-annotations of other interceptor bindings recursively

XMLWordPrintable

      It seems that only one level of inheritance is taken into account. The problem is likely in Interceptors.flattenInterceptorBindings(BeanManagerImpl, Collection<Annotation>, boolean, boolean) or InterceptorBindingModel.

      9.5. Interceptor resolution:
      For a business method or EJB timeout method, the interceptor bindings include the interceptor bindings declared or inherited by the bean at the class level, including, recursively, interceptor bindings declared as meta-annotations of other interceptor bindings and stereotypes, together with all interceptor bindings declared at the method level, including, recursively, interceptor bindings declared as meta-annotations of other interceptor bindings.

      See also CDI TCK 1.1 test:
      https://github.com/jboss/cdi-tck/blob/master/impl/src/main/java/org/jboss/cdi/tck/tests/interceptors/definition/inheritance/resolution/InterceptorBindingResolutionTest.java

              rhn-engineering-jharting Jozef Hartinger
              mkouba@redhat.com Martin Kouba
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: