You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ge...@apache.org on 2002/05/07 15:24:43 UTC
cvs commit: jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node ASTMethod.java
geirm 02/05/07 06:24:43
Modified: src/java/org/apache/velocity/runtime/parser/node
ASTMethod.java
Log:
Fix attempt for killer bug reported by ivan.bella@capita.com (Ivan Bella)
Thanks for sticking with it. I am stunned we hadn't seen this before :)
Revision Changes Path
1.23 +5 -6 jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node/ASTMethod.java
Index: ASTMethod.java
===================================================================
RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/runtime/parser/node/ASTMethod.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- ASTMethod.java 21 Apr 2002 20:57:04 -0000 1.22
+++ ASTMethod.java 7 May 2002 13:24:43 -0000 1.23
@@ -86,13 +86,12 @@
*
* @author <a href="mailto:jvanzyl@apache.org">Jason van Zyl</a>
* @author <a href="mailto:geirm@optonline.net">Geir Magnusson Jr.</a>
- * @version $Id: ASTMethod.java,v 1.22 2002/04/21 20:57:04 geirm Exp $
+ * @version $Id: ASTMethod.java,v 1.23 2002/05/07 13:24:43 geirm Exp $
*/
public class ASTMethod extends SimpleNode
{
private String methodName = "";
private int paramCount = 0;
- private Object [] params;
public ASTMethod(int id)
{
@@ -125,8 +124,7 @@
methodName = getFirstToken().image;
paramCount = jjtGetNumChildren() - 1;
- params = new Object[paramCount];
-
+
return data;
}
@@ -147,7 +145,9 @@
VelMethod method = null;
- try
+ Object [] params = new Object[paramCount];
+
+ try
{
/*
* check the cache
@@ -189,7 +189,6 @@
params[j] = jjtGetChild(j + 1).value(context);
method = rsvc.getUberspect().getMethod(o, methodName, params, new Info("",1,1));
-
if (method != null)
{
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>