Claude Brisson created VELOCITY-926:

             Summary: Regression: Macro arguments names cannot collide with 
external references names
                 Key: VELOCITY-926
             Project: Velocity
          Issue Type: Bug
          Components: Engine
    Affects Versions: 2.1, 2.0
            Reporter: Claude Brisson
            Assignee: Claude Brisson

Consider the following example:

#macro( test $foo $bar )
  $foo $bar

#set($foo = 'foo')
#set($bar = 'bar')

#test( $bar, $foo )

The expected result would be {{code}}bar foo{{code}}, but since 2.0 we get the 
incorrect result {{code}}bar bar{{code}}, as if the first inner 
{{code}}$foo{{code}} macro argument was overwritting the second argument 

This message was sent by Atlassian Jira

To unsubscribe, e-mail:
For additional commands, e-mail:

Reply via email to