[weld-commits] Weld SVN: r6095 - in core/trunk: tests/src/test/java/org/jboss/weld/tests/decorators/multidelegate and 1 other directory.

weld-commits at lists.jboss.org weld-commits at lists.jboss.org
Mon Apr 12 12:06:10 EDT 2010


Author: marius.bogoevici
Date: 2010-04-12 12:06:08 -0400 (Mon, 12 Apr 2010)
New Revision: 6095

Modified:
   core/trunk/impl/src/main/java/org/jboss/weld/bootstrap/Validator.java
   core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/multidelegate/Account.java
Log:
WELD-487: @Delegate injection points are not checked for serializability.

Modified: core/trunk/impl/src/main/java/org/jboss/weld/bootstrap/Validator.java
===================================================================
--- core/trunk/impl/src/main/java/org/jboss/weld/bootstrap/Validator.java	2010-04-12 12:37:05 UTC (rev 6094)
+++ core/trunk/impl/src/main/java/org/jboss/weld/bootstrap/Validator.java	2010-04-12 16:06:08 UTC (rev 6095)
@@ -238,8 +238,11 @@
          }
          for (InjectionPoint ij : decorator.getInjectionPoints())
          {
-            Bean<?> resolvedBean = beanManager.resolve(beanManager.getBeans(ij));
-            validateInjectionPointPassivationCapable(ij, resolvedBean, beanManager);
+            if (!ij.isDelegate())
+            {
+               Bean<?> resolvedBean = beanManager.resolve(beanManager.getBeans(ij));
+               validateInjectionPointPassivationCapable(ij, resolvedBean, beanManager);
+            }
          }
       }
    }

Modified: core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/multidelegate/Account.java
===================================================================
--- core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/multidelegate/Account.java	2010-04-12 12:37:05 UTC (rev 6094)
+++ core/trunk/tests/src/test/java/org/jboss/weld/tests/decorators/multidelegate/Account.java	2010-04-12 16:06:08 UTC (rev 6095)
@@ -1,9 +1,11 @@
 package org.jboss.weld.tests.decorators.multidelegate;
 
+import java.io.Serializable;
 import java.math.BigDecimal;
 
-public interface Account {
+public interface Account extends Serializable 
+{
    
    public String withdraw(BigDecimal amount);
 
-}
\ No newline at end of file
+}



More information about the weld-commits mailing list