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

Interceptors won't work on base beans if there's at least double inheritance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.1.2.Final
    • 1.1.0.CR3, 1.1.0.CR4, 1.1.0.Final, 1.1.1.Final
    • None
    • Hide

      Use the provided test

      Show
      Use the provided test

    Description

      Imagine you have an abstract BaseBean that is extended by abstract MiddleBean that is extended by the ImplementingBean.

      ImplementingBean is annotated with @Interceptable that is an Interceptor binding for TestInterceptor. Now calling any of the methods from any of those classes on an ImplementingBean should invoke the interceptor.

      The result is that the methods from MiddleBean and ImplementingBean are intercepted, while methods from BaseBean are not . If the BaseBean calls any method from either MiddleBean or ImplementingBean the call will get intercepted.

      If there's only one inheritance, it will work well. For 2 and more, only the parent of ImplementingBean gets intercepted.

      Please check the attached arquillian test.

      Attachments

        Issue Links

          Activity

            People

              ajustin@redhat.com Ales Justin
              szimano_jira Tomasz Szymanski (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: