[seam-commits] Seam SVN: r13625 - modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Sun Aug 22 17:15:36 EDT 2010


Author: swd847
Date: 2010-08-22 17:15:36 -0400 (Sun, 22 Aug 2010)
New Revision: 13625

Modified:
   modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java
Log:
infinite loop fix


Modified: modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java
===================================================================
--- modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java	2010-08-21 11:29:28 UTC (rev 13624)
+++ modules/persistence/trunk/impl/src/main/java/org/jboss/seam/persistence/ManagedPersistenceContextProxyHandler.java	2010-08-22 21:15:36 UTC (rev 13625)
@@ -114,11 +114,13 @@
       {
          try
          {
+            // we need to do this first to prevent an infinite loop
+            persistenceContextsTouched = true;
             persistenceContexts.touch(delegate);
-            persistenceContextsTouched = true;
          }
          catch (ContextNotActiveException e)
          {
+            persistenceContextsTouched = false;
             log.debug("Not touching pc " + this + "as conversation scope not active");
          }
       }



More information about the seam-commits mailing list