You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Guido Deinhammer (JIRA)" <de...@velocity.apache.org> on 2007/06/22 07:51:25 UTC
[jira] Created: (VELOCITY-557) Parsing error when defining a Map
where the last entry is a reference
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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org
[jira] Resolved: (VELOCITY-557) Parsing error when defining a Map
where the last entry is a reference
Posted by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-557?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Will Glass-Husain resolved VELOCITY-557.
----------------------------------------
Resolution: Duplicate
Fix Version/s: (was: 1.5.1)
1.6
duplicate of VELOCITY-538. Fixed in svn head.
> 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.6
>
>
> 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: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org