You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Byron Foster (JIRA)" <de...@velocity.apache.org> on 2009/03/05 01:35:56 UTC
[jira] Created: (VELOCITY-709) String literal "\\" parses
incorrectly
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
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
[jira] Commented: (VELOCITY-709) String literal "\\" parses
incorrectly
Posted by "Jarkko Viinamäki (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12850582#action_12850582 ]
Jarkko Viinamäki commented on VELOCITY-709:
-------------------------------------------
See patch submitted for VELOCITY-555 which should solve also this problem.
> 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
>
>
> 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
[jira] Commented: (VELOCITY-709) String literal "\\" parses
incorrectly
Posted by "Steve Ragle (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12802400#action_12802400 ]
Steve Ragle commented on VELOCITY-709:
--------------------------------------
This breaks a critical template for us (which is highly customized by many of our customers), which means we can't use 1.6 at all unless this is fixed. That's a shame because I was looking forward to taking advantage of several 1.6 changes and features.
> 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
>
>
> 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
[jira] Resolved: (VELOCITY-709) String literal "\\" parses
incorrectly
Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
[ 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