ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mr...@apache.org
Subject svn commit: r646996 - /ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
Date Thu, 10 Apr 2008 22:46:13 GMT
Author: mriou
Date: Thu Apr 10 15:46:02 2008
New Revision: 646996

URL: http://svn.apache.org/viewvc?rev=646996&view=rev
Log:
Optimization on assign, no need to save twice when a variable is initialized and then set.

Modified:
    ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java

Modified: ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java?rev=646996&r1=646995&r2=646996&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
(original)
+++ ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
Thu Apr 10 15:46:02 2008
@@ -121,7 +121,9 @@
                     tempwrapper.appendChild(val);
                     val = tempwrapper;
                 } else doc.appendChild(val);
-                lval = initializeVariable(lvar, val);
+                // Only external variables need to be initialized, others are new and going
to be overwtitten
+                if (lvar.declaration.extVar != null) lval = initializeVariable(lvar, val);
+                else lval = val;
             } else
                 lval = fetchVariableData(lvar, true);
         }



Mime
View raw message