Parsing error when defining a Map where the last entry is a reference
---------------------------------------------------------------------

                 Key: VELOCITY-557
                 URL: https://issues.apache.org/jira/browse/VELOCITY-557
             Project: Velocity
          Issue Type: Bug
          Components: Engine
    Affects Versions: 1.5
         Environment: Windows
            Reporter: Guido Deinhammer
            Priority: Minor
             Fix For: 1.5.1


When defining a map like this:

#set($map = {"param1":"test", "param2":$test})

I get a parsing exception:
Encountered "}" at line .....
Was expecting one of:
    "," ...
    "}" ...

However the problem happens only, if the last argument is a reference - as 
opposed to a hard coded value - so if i define the map like this:
#set($map = {"param2":$test, "param1":"test"})
it works fine.


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