[jbpm-commits] JBoss JBPM SVN: r4087 - jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/main/java/org/jbpm.

do-not-reply at jboss.org do-not-reply at jboss.org
Sat Feb 28 11:55:18 EST 2009


Author: thomas.diesler at jboss.com
Date: 2009-02-28 11:55:18 -0500 (Sat, 28 Feb 2009)
New Revision: 4087

Modified:
   jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/main/java/org/jbpm/JbpmConfiguration.java
Log:
Clear the real list, not the copy

Modified: jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/main/java/org/jbpm/JbpmConfiguration.java
===================================================================
--- jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/main/java/org/jbpm/JbpmConfiguration.java	2009-02-28 15:52:35 UTC (rev 4086)
+++ jbpm3/branches/jbpm-3.2.6.GA/modules/core/src/main/java/org/jbpm/JbpmConfiguration.java	2009-02-28 16:55:18 UTC (rev 4087)
@@ -643,15 +643,15 @@
 
   static void clearJbpmConfigurationStack()
   {
-    List<JbpmConfiguration> configStack = new ArrayList<JbpmConfiguration>(getJbpmConfigurationStack());
+    List<JbpmConfiguration> configStack = getJbpmConfigurationStack();
     if (configStack != null)
     {
-      for (JbpmConfiguration config : configStack)
+      for (JbpmConfiguration config : new ArrayList<JbpmConfiguration>(configStack))
       {
-        List<JbpmContext> contextStack = new ArrayList<JbpmContext>(config.getJbpmContextStack());
+        List<JbpmContext> contextStack = config.getJbpmContextStack();
         if (contextStack != null)
         {
-          for (JbpmContext context : contextStack)
+          for (JbpmContext context : new ArrayList<JbpmContext>(contextStack))
           {
             context.close();
           }




More information about the jbpm-commits mailing list