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

Interceptor/Decorator injection point validation logic incorrect

    Details

    • Affects:
      Release Notes

      Description

      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.

        Gliffy Diagrams

          Activity

          Hide
          jharting Jozef Hartinger added a comment -

          Reopening, seems to cause incontainer failures.

          Show
          jharting Jozef Hartinger added a comment - Reopening, seems to cause incontainer failures.

            People

            • Assignee:
              jharting Jozef Hartinger
              Reporter:
              jharting Jozef Hartinger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development