-
Bug
-
Resolution: Done
-
Major
-
1.1.2.Final
-
None
-
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.