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

Siri C. closed VELOCITY-770.
----------------------------

    Resolution: Not A Problem

I found the reason because of scope of macro variable was changed from global 
to local in 1.6
To resolve this problem on 1.6.x, we have to set this property 
velocimacro.context.localscope to true.


> Infinite loop when upgrade Velocity to 1.6.2
> --------------------------------------------
>
>                 Key: VELOCITY-770
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-770
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.6.x
>            Reporter: Siri C.
>            Priority: Critical
>
> I have replace a velocity from version 1.5 to 1.6.2 and encounter infinite 
> loop when use with IteratorTool
> This code is worked with version 1.5
> #set($limit = 2) 
> #set ($listForIter = [1,2,3,4,5,6,7,8,9,10]) 
> #set ($numbersSet = $iterator.wrap($listForIter))
> #foreach ($counter in $numbersSet)
>    #if ($counter <= $limit) 
>       $numbersSet.more()
>    #end
> #end

-- 
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