[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-dev
Subject:    [jira] Resolved: (VELOCITY-709) String literal "\\" parses
From:       "Nathan Bubna (JIRA)" <dev () velocity ! apache ! org>
Date:       2010-03-28 18:30:27
Message-ID: 300115570.536581269801027491.JavaMail.jira () brutus ! apache ! org
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/VELOCITY-709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Nathan Bubna resolved VELOCITY-709.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0

Thanks, Jarkko!

> String literal "\\" parses incorrectly
> --------------------------------------
> 
> Key: VELOCITY-709
> URL: https://issues.apache.org/jira/browse/VELOCITY-709
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.7
> Reporter: Byron Foster
> Fix For: 1.7, 2.0
> 
> 
> Given the following VTL:
> #set($var = "\\" )
> #set($var2 = "${var}")
> results in the following parse error:
> Encountered "${" at test.vm[line 2, column 15]
> Was expecting one of:
> <RPAREN> ...
> ...
> the problem is that when parsing the string literal "\\" the second double quote is \
> escaped.  This was actually a bug that was introduced in 1.6.x, but I don't think \
> we necessarily need to fix it in that branch.

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic