velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r726485 - /velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Foreach.java
Date Sun, 14 Dec 2008 16:24:28 GMT
Author: cbrisson
Date: Sun Dec 14 08:24:28 2008
New Revision: 726485

URL: http://svn.apache.org/viewvc?rev=726485&view=rev
Log:
fix: velocityHasNext was always true...

Modified:
    velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Foreach.java

Modified: velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Foreach.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Foreach.java?rev=726485&r1=726484&r2=726485&view=diff
==============================================================================
--- velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Foreach.java (original)
+++ velocity/engine/trunk/src/java/org/apache/velocity/runtime/directive/Foreach.java Sun
Dec 14 08:24:28 2008
@@ -341,8 +341,8 @@
         {
             // TODO: JDK 1.5+ -> Integer.valueOf()
             put(context, counterName , new Integer(counter));
-            put(context, hasNextName, Boolean.valueOf(i.hasNext()));
             Object value = i.next();
+            put(context, hasNextName, Boolean.valueOf(i.hasNext()));
             put(context, elementKey, value);
 
             try



Mime
View raw message