openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1761868 - /openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
Date Thu, 22 Sep 2016 08:49:25 GMT
Author: struberg
Date: Thu Sep 22 08:49:25 2016
New Revision: 1761868

URL: http://svn.apache.org/viewvc?rev=1761868&view=rev
Log:
OWB-1154 lock on session instead of string

reported by Svetlin Zarev - txs!

Modified:
    openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java

Modified: openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java?rev=1761868&r1=1761867&r2=1761868&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
(original)
+++ openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebContextsService.java
Thu Sep 22 08:49:25 2016
@@ -472,7 +472,7 @@ public class WebContextsService extends
             if (currentSessionContext == null)
             {
                 // no current context, so lets create a new one
-                synchronized (OWB_SESSION_CONTEXT_ATTRIBUTE_NAME)
+                synchronized (session)
                 {
                     currentSessionContext = (SessionContext) session.getAttribute(OWB_SESSION_CONTEXT_ATTRIBUTE_NAME);
                     if (currentSessionContext == null)



Mime
View raw message