[ 
https://issues.apache.org/jira/browse/VELOCITY-772?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov updated VELOCITY-772:
------------------------------------

    Attachment: foreach-test.zip

This simple Maven project depicts the error. Run App.java and see stdout 
output. It should look like this:
foreach output:
1: {hasNext: true, first: $foreach.first, last: $foreach.last, count: 1, index: 
0}
foreach output:
2: {hasNext: true, first: $foreach.first, last: $foreach.last, count: 2, index: 
1}
foreach output:
3: {hasNext: true, first: $foreach.first, last: $foreach.last, count: 3, index: 
2}
foreach output:
4: {hasNext: true, first: $foreach.first, last: $foreach.last, count: 4, index: 
3}
foreach output:
5: {hasNext: true, first: $foreach.first, last: $foreach.last, count: 5, index: 
4}
foreach output:
6: {hasNext: true, first: $foreach.first, last: $foreach.last, count: 6, index: 
5}
foreach output:
7: {hasNext: true, first: $foreach.first, last: $foreach.last, count: 7, index: 
6}
foreach output:
8: {hasNext: true, first: $foreach.first, last: $foreach.last, count: 8, index: 
7}
foreach output:
9: {hasNext: true, first: $foreach.first, last: $foreach.last, count: 9, index: 
8}
foreach output:
10: {hasNext: true, first: $foreach.first, last: $foreach.last, count: 10, 
index: 9}



> $foreach properties are incorrect
> ---------------------------------
>
>                 Key: VELOCITY-772
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-772
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.7-beta1
>            Reporter: Michael Osipov
>            Priority: Critical
>         Attachments: foreach-test.zip
>
>
> Trying the new $foreach scope variable results in false or no output.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to