geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1607766 - /geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/CDI.java
Date Thu, 03 Jul 2014 23:17:18 GMT
Author: rmannibucau
Date: Thu Jul  3 23:17:17 2014
New Revision: 1607766

URL: http://svn.apache.org/r1607766
Log:
setting a null provider setCDIProvider shouldn't fail

Modified:
    geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/CDI.java

Modified: geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/CDI.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/CDI.java?rev=1607766&r1=1607765&r2=1607766&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/CDI.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_1.1_spec/src/main/java/javax/enterprise/inject/spi/CDI.java
Thu Jul  3 23:17:17 2014
@@ -42,7 +42,14 @@ public abstract class CDI<T> implements 
     public static void setCDIProvider(CDIProvider provider)
     {
         //X TODO implement!
-        INSTANCE = provider.getCDI();
+        if (provider == null)
+        {
+            INSTANCE = null;
+        }
+        else
+        {
+            INSTANCE = provider.getCDI();
+        }
     }
 
     public abstract BeanManager getBeanManager();



Mime
View raw message