Author: marius.bogoevici
Date: 2009-10-16 17:23:55 -0400 (Fri, 16 Oct 2009)
New Revision: 4164
Modified:
core/trunk/impl/src/main/java/org/jboss/weld/Validator.java
Log:
Make all passivation inconsistencies to throw an UnserializableDependencyException
Modified: core/trunk/impl/src/main/java/org/jboss/weld/Validator.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/Validator.java 2009-10-16 20:54:02 UTC
(rev 4163)
+++ core/trunk/impl/src/main/java/org/jboss/weld/Validator.java 2009-10-16 21:23:55 UTC
(rev 4164)
@@ -256,7 +256,7 @@
{
if (resolvedBean.getScope().equals(Dependent.class) && resolvedBean
instanceof AbstractProducerBean<?, ?,?>)
{
- throw new IllegalProductException("The bean " + ij.getBean() +
" declares a passivating scope but the producer returned a non-serializable bean for
injection: " + resolvedBean);
+ throw new UnserializableDependencyException("The bean " +
ij.getBean() + " declares a passivating scope but the producer returned a
non-serializable bean for injection: " + resolvedBean);
}
throw new UnserializableDependencyException("The bean " + ij.getBean()
+ " declares a passivating scope but has non-serializable dependency: " +
resolvedBean);
}
Show replies by date