Author: mriou
Date: Tue Oct 24 11:04:30 2006
New Revision: 467415

URL: http://svn.apache.org/viewvc?view=rev&rev=467415
Log:
Fixed a bug in assignment when lvaluePtr is a text node.

Modified:
    
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java

Modified: 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java?view=diff&rev=467415&r1=467414&r2=467415
==============================================================================
--- 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
 (original)
+++ 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
 Tue Oct 24 11:04:30 2006
@@ -501,6 +501,8 @@
                 // A little kludge, let our caller know that the root
                 // element has changed. (used for assignment to a simple
                 // typed variable)
+                if (lvalue.getNodeType() == Node.ELEMENT_NODE && 
lvalue.getFirstChild().getNodeType() == Node.TEXT_NODE)
+                    lvalue = lvalue.getFirstChild();
                 if (lvalue.getNodeType() == Node.TEXT_NODE && ((Text) 
lvalue).getWholeText().equals(
                         ((Text) lvaluePtr).getWholeText()))
                     lvalue = lvaluePtr = newval;


Reply via email to