openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1629255 - in /openwebbeans/trunk/webbeans-impl/src: main/java/org/apache/webbeans/component/AbstractProducerBean.java test/java/org/apache/webbeans/test/producer/ProducerPassivationTest.java
Date Fri, 03 Oct 2014 16:42:24 GMT
Author: struberg
Date: Fri Oct  3 16:42:24 2014
New Revision: 1629255

URL: http://svn.apache.org/r1629255
Log:
OWB-1019 implement passsivation checks as clarified in CDI-1.1

See spec issues CDI-140 and CDI-153 for more infos

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractProducerBean.java
    openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/producer/ProducerPassivationTest.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractProducerBean.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractProducerBean.java?rev=1629255&r1=1629254&r2=1629255&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractProducerBean.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractProducerBean.java
Fri Oct  3 16:42:24 2014
@@ -115,12 +115,7 @@ public class AbstractProducerBean<T> ext
         {
             return false;
         }
-        
-        if(returnType.isPrimitive() || Serializable.class.isAssignableFrom(returnType))
-        {
-            return true;
-        }
-        
-        return false;
+
+        return true;
     }
 }

Modified: openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/producer/ProducerPassivationTest.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/producer/ProducerPassivationTest.java?rev=1629255&r1=1629254&r2=1629255&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/producer/ProducerPassivationTest.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/producer/ProducerPassivationTest.java
Fri Oct  3 16:42:24 2014
@@ -106,7 +106,8 @@ public class ProducerPassivationTest ext
         }
     }
 
-    public static class NonSerializableImplHolder
+    @SessionScoped
+    public static class NonSerializableImplHolder implements Serializable
     {
         private @Inject NonSerializableInterface instance;
 



Mime
View raw message