openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1629364 - in /openwebbeans/branches/owb_1.2.x/webbeans-impl/src: main/java/org/apache/webbeans/component/AbstractProducerBean.java test/java/org/apache/webbeans/newtests/producer/ProducerPassivationTest.java
Date Sat, 04 Oct 2014 09:21:43 GMT
Author: struberg
Date: Sat Oct  4 09:21:43 2014
New Revision: 1629364

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

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

Added:
    openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/producer/ProducerPassivationTest.java
      - copied, changed from r1629360, openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/producer/ProducerPassivationTest.java
Modified:
    openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractProducerBean.java

Modified: openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractProducerBean.java
URL: http://svn.apache.org/viewvc/openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractProducerBean.java?rev=1629364&r1=1629363&r2=1629364&view=diff
==============================================================================
--- openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractProducerBean.java
(original)
+++ openwebbeans/branches/owb_1.2.x/webbeans-impl/src/main/java/org/apache/webbeans/component/AbstractProducerBean.java
Sat Oct  4 09:21:43 2014
@@ -121,11 +121,6 @@ public class AbstractProducerBean<T> ext
             return false;
         }
         
-        if(returnType.isPrimitive() || Serializable.class.isAssignableFrom(returnType))
-        {
-            return true;
-        }
-        
-        return false;
+        return true;
     }
 }

Copied: openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/producer/ProducerPassivationTest.java
(from r1629360, openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/producer/ProducerPassivationTest.java)
URL: http://svn.apache.org/viewvc/openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/producer/ProducerPassivationTest.java?p2=openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/producer/ProducerPassivationTest.java&p1=openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/producer/ProducerPassivationTest.java&r1=1629360&r2=1629364&rev=1629364&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/test/java/org/apache/webbeans/test/producer/ProducerPassivationTest.java
(original)
+++ openwebbeans/branches/owb_1.2.x/webbeans-impl/src/test/java/org/apache/webbeans/newtests/producer/ProducerPassivationTest.java
Sat Oct  4 09:21:43 2014
@@ -14,17 +14,17 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-package org.apache.webbeans.test.producer;
+package org.apache.webbeans.newtests.producer;
 
 import javax.enterprise.context.Dependent;
 import javax.enterprise.context.SessionScoped;
 import javax.enterprise.inject.Produces;
-import javax.enterprise.inject.spi.DefinitionException;
 import javax.inject.Inject;
 import java.io.Serializable;
 
 import junit.framework.Assert;
-import org.apache.webbeans.test.AbstractUnitTest;
+import org.apache.webbeans.exception.inject.DefinitionException;
+import org.apache.webbeans.newtests.AbstractUnitTest;
 import org.junit.Test;
 
 /**



Mime
View raw message