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

Interceptor/Decorator injection point validation logic incorrect

XMLWordPrintable

    • Release Notes

      for (InjectionPoint injectionPoint : serializableContextual.get().getInjectionPoints()) {
          Bean<?> resolvedBean = beanManager.resolve(beanManager.getBeans(injectionPoint));
          validateInjectionPoint(injectionPoint, beanManager);
          if (classBean.isPassivationCapableBean()) {
              validateInjectionPointPassivationCapable(injectionPoint, resolvedBean, beanManager);
          }
      }
      

      classBean.isPassivationCapableBean() checks if the intercepted bean is passivation capable. However, even if the interceptor bean is passivation capable, the interceptor is not obliged to have passivation capable dependencies unless the intercepted bean declares a passivating scope. The condition (note there are multiple occurences) should be based on this check instead.

              rhn-engineering-jharting Jozef Hartinger
              rhn-engineering-jharting Jozef Hartinger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: