commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r391028 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
Date Mon, 03 Apr 2006 12:23:46 GMT
Author: dion
Date: Mon Apr  3 05:23:43 2006
New Revision: 391028

URL: http://svn.apache.org/viewcvs?rev=391028&view=rev
Log:
Make sure the script executes all statements

Modified:
    jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java

Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java?rev=391028&r1=391027&r2=391028&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
(original)
+++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTJexlScript.java
Mon Apr  3 05:23:43 2006
@@ -25,7 +25,12 @@
   
   public Object value(JexlContext jc) throws Exception
   {
-      SimpleNode child = (SimpleNode)jjtGetChild(0);
-      return child.value(jc);
+      int numChildren = jjtGetNumChildren();
+      Object result = null;
+      for (int i = 0; i < numChildren; i++) {
+          SimpleNode child = (SimpleNode)jjtGetChild(i);
+          result = child.value(jc);
+      }
+      return result;
   }
 }



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message