Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-723

Interceptors doesn't work for beans got from stereotype annotated producer methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.1.6
    • 1.1.8
    • Core
    • None

    Description

      Openwebbeans breaks CDI specs, if a producer method is annotated with a stereotype, which includes interceptors. The produced beans won't be intercepted.

      A first debugging shows, that the error may be in org.apache.webbeans.intercept.InterceptorHandler.invoke(Object, Method, Object[], CreationalContextImpl<?>):231:


      if (!isNotInterceptedOrDecoratedMethod &&
      !ClassUtil.isObjectMethod(methodName) && bean instanceof InjectionTargetBean<?>)

      The bean is of type ProducerMethodBean, which is not an instance of InjectionTargetBean, the if-block won't be executed.

      Attached you'll find a test case.

      Attachments

        1. stereotyped_producer_tests.diff
          16 kB
          Marco Lübcke

        Activity

          People

            arne Arne Limburg
            mluebcke Marco Lübcke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: