You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Claude Brisson (JIRA)" <de...@velocity.apache.org> on 2010/10/27 17:28:22 UTC

[jira] Created: (VELOCITY-783) Parser bug with comments following a reference with a property

Parser bug with comments following a reference with a property
--------------------------------------------------------------

                 Key: VELOCITY-783
                 URL: https://issues.apache.org/jira/browse/VELOCITY-783
             Project: Velocity
          Issue Type: Bug
          Components: Engine
    Affects Versions: 2.0
         Environment: any
            Reporter: Claude Brisson
            Priority: Minor


The following template:

#set( $map = { 'foo' : 'bar' } )
$map.size()## ok
$map.foo## not ok
$map.foo ## ok with a space behind
${map.foo}## ok with curly braces
$map## ok
schmoo## ok

gives the result :

1bar## not ok
bar bar{foo=bar}schmoo

That is,  "$map.foo##" is incorrectly parsed - the reference is resolved successfully, but the comment is considered schmoo.


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