You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by jv...@locus.apache.org on 2000/09/19 07:16:36 UTC
cvs commit: jakarta-velocity/src/java/org/apache/velocity/processor/javacc/parser ASTForeachStatement.java
jvanzyl 00/09/18 22:16:36
Modified: src/java/org/apache/velocity/processor/javacc/parser
ASTForeachStatement.java
Log:
- added a sample todo for an ant task that i would like to
make that would parse TODO blobs and create a project
wide TODO document that could be updated nightly.
Revision Changes Path
1.2 +7 -0 jakarta-velocity/src/java/org/apache/velocity/processor/javacc/parser/ASTForeachStatement.java
Index: ASTForeachStatement.java
===================================================================
RCS file: /home/cvs/jakarta-velocity/src/java/org/apache/velocity/processor/javacc/parser/ASTForeachStatement.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ASTForeachStatement.java 2000/09/19 01:58:46 1.1
+++ ASTForeachStatement.java 2000/09/19 05:16:35 1.2
@@ -57,6 +57,13 @@
listObject = jjtGetChild(1).value(context);
+ /*!
+ * @desc Need to create a ReferenceException here, for
+ * example when the listObject is null. This
+ * obviously should be caught.
+ * @priority 1
+ */
+
if (listObject instanceof Object[])
{
int length = ((Object[]) listObject).length;