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

Interceptor resolution works across bean archive boundaries

XMLWordPrintable

    • Hide
      • create two bean archives (BDA1 and BDA2)
      • create an interceptor-binding qualifier, an interceptor and a beans.xml in BDA1
      • mark a bean method in BDA2 with the interceptor-binding qualifier

      -> should not work, but does.

      Show
      create two bean archives (BDA1 and BDA2) create an interceptor-binding qualifier, an interceptor and a beans.xml in BDA1 mark a bean method in BDA2 with the interceptor-binding qualifier -> should not work, but does.

      Enabling Interceptors in beans.xml in a bean archive will enable the interceptor for ALL bean archives in the class path.

      according to CDI spec 1.0 (9.5. Interceptor resolution) this is wrong:
      "An interceptor is bound to a method if: [....] The interceptor is enabled in the bean archive containing the bean."

            Unassigned Unassigned
            mhartl_jira Manuel Hartl (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: