LoopTool doesn't sync correctly
-------------------------------

                 Key: VELTOOLS-128
                 URL: https://issues.apache.org/jira/browse/VELTOOLS-128
             Project: Velocity Tools
          Issue Type: Bug
          Components: GenericTools
    Affects Versions: 2.0
         Environment: Velocity Tools 2.0, Velocity Engine 1.6.4
            Reporter: Iain Miller


When using LoopTool, it doesn't appear to sync correctly, starting "one in" on 
the second list, and also missing the last value from the second list.

Running the example from the documentation, without the stop():

  #set( $list = [1..7] )
  #set( $others = [3..10] )
  #foreach( $item in $loop.watch($list).sync($others, 'other') )
    $item -> $loop.other
  #end

produces:
    1 -> 4
    2 -> 5
    3 -> 6
    4 -> 7
    5 -> 8
    6 -> 9
    7 -> $loop.other


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