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/01/22 11:27:59 UTC
[jira] Created: (VELOCITY-678) Bad parsing of macro
Bad parsing of macro
--------------------
Key: VELOCITY-678
URL: https://issues.apache.org/jira/browse/VELOCITY-678
Project: Velocity
Issue Type: Bug
Components: Engine
Affects Versions: 1.6.1, 1.7
Reporter: Byron Foster
Priority: Minor
The following:
#macro(foo)bar#end
$#foo()
results in:
$#foo()
but should be:
$bar
The problem is that the macro name is getting hosed.. strict mode reveals the following error:
Macro '##foo' is not defined at /foo.vm[line 9, column 1]
--
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-678) Bad parsing of macro
Posted by "Nathan Bubna (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12905146#action_12905146 ]
Nathan Bubna commented on VELOCITY-678:
---------------------------------------
Again, this seems obscure and difficult to fix (to me ATM). Anyone want to step and fix this in 1.7 or shall i postpone?
> Bad parsing of macro
> --------------------
>
> Key: VELOCITY-678
> URL: https://issues.apache.org/jira/browse/VELOCITY-678
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6.1, 1.7
> Reporter: Byron Foster
> Priority: Minor
> Fix For: 1.7
>
>
> The following:
> #macro(foo)bar#end
> $#foo()
> results in:
> $#foo()
> but should be:
> $bar
> The problem is that the macro name is getting hosed.. strict mode reveals the following error:
> Macro '##foo' is not defined at /foo.vm[line 9, column 1]
--
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] Updated: (VELOCITY-678) Bad parsing of macro
Posted by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org>.
[ https://issues.apache.org/jira/browse/VELOCITY-678?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Will Glass-Husain updated VELOCITY-678:
---------------------------------------
Fix Version/s: 1.7
> Bad parsing of macro
> --------------------
>
> Key: VELOCITY-678
> URL: https://issues.apache.org/jira/browse/VELOCITY-678
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6.1, 1.7
> Reporter: Byron Foster
> Priority: Minor
> Fix For: 1.7
>
>
> The following:
> #macro(foo)bar#end
> $#foo()
> results in:
> $#foo()
> but should be:
> $bar
> The problem is that the macro name is getting hosed.. strict mode reveals the following error:
> Macro '##foo' is not defined at /foo.vm[line 9, column 1]
--
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