openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1631178 - /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DeploymentValidationService.java
Date Sun, 12 Oct 2014 13:42:00 GMT
Author: rmannibucau
Date: Sun Oct 12 13:41:59 2014
New Revision: 1631178

URL: http://svn.apache.org/r1631178
Log:
skip EJB fornow in validatePassivationCapable

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DeploymentValidationService.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DeploymentValidationService.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DeploymentValidationService.java?rev=1631178&r1=1631177&r2=1631178&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DeploymentValidationService.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/config/DeploymentValidationService.java
Sun Oct 12 13:41:59 2014
@@ -36,6 +36,7 @@ import javax.enterprise.inject.spi.Injec
 import javax.enterprise.inject.spi.Interceptor;
 import javax.enterprise.inject.spi.PassivationCapable;
 
+import org.apache.webbeans.component.EnterpriseBeanMarker;
 import org.apache.webbeans.component.OwbBean;
 import org.apache.webbeans.component.ProducerMethodBean;
 import org.apache.webbeans.exception.WebBeansConfigurationException;
@@ -159,7 +160,7 @@ public class DeploymentValidationService
      */
     public <T> void validatePassivationCapable(OwbBean<T> bean)
     {
-        if (isPassivationCapable(bean))
+        if (isPassivationCapable(bean) && !EnterpriseBeanMarker.class.isInstance(bean))
         {
             if (!(bean instanceof ProducerMethodBean))
             {



Mime
View raw message