You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Siri C. (JIRA)" <de...@velocity.apache.org> on 2010/07/06 10:06:49 UTC

[jira] Closed: (VELOCITY-770) Infinite loop when upgrade Velocity to 1.6.2

     [ 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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org