geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From genspr...@apache.org
Subject svn commit: r1131649 - /geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/GeronimoSingletonService.java
Date Sun, 05 Jun 2011 04:09:34 GMT
Author: genspring
Date: Sun Jun  5 04:09:34 2011
New Revision: 1131649

URL: http://svn.apache.org/viewvc?rev=1131649&view=rev
Log:
add this to skip the owb problem for now, will revert it back after running tck.

Modified:
    geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/GeronimoSingletonService.java

Modified: geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/GeronimoSingletonService.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/GeronimoSingletonService.java?rev=1131649&r1=1131648&r2=1131649&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/GeronimoSingletonService.java
(original)
+++ geronimo/server/trunk/plugins/openwebbeans/geronimo-openwebbeans/src/main/java/org/apache/geronimo/openwebbeans/GeronimoSingletonService.java
Sun Jun  5 04:09:34 2011
@@ -32,6 +32,8 @@ public class GeronimoSingletonService im
 
     private static final ThreadLocal<WebBeansContext> contexts = new ThreadLocal<WebBeansContext>();
     private static Bundle bundle;
+    
+    private static final WebBeansContext noContext = new WebBeansContext();
 
     public static void init(Bundle owbBundle) {
         bundle = owbBundle;
@@ -59,7 +61,7 @@ public class GeronimoSingletonService im
     private WebBeansContext getContext() {
         WebBeansContext context = contexts.get();
         if (context == null) {
-            throw new IllegalStateException("On a thread without an initialized context");
+            contexts.set(noContext);
         }
         return context;
     }



Mime
View raw message