[
https://issues.apache.org/jira/browse/VELOCITY-614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nathan Bubna updated VELOCITY-614:
----------------------------------
Attachment: Velocity614TestCase.java
here's a test case which confirms it:
[junit] [error] Parser Error: #macro() : #something(Stuff)
[junit] Invalid arg #0 in directive #something at line 1, column 11 of
#something(Stuff)
[junit]
[junit] org.apache.velocity.runtime.directive.MacroParseException: Invalid arg
#0 in directive #something at line 1, column 11 of #something(Stuff)
[junit] at
org.apache.velocity.runtime.parser.Parser.Directive(Parser.java:798)
[junit] at
org.apache.velocity.runtime.parser.Parser.Statement(Parser.java:369)
[junit] at
org.apache.velocity.runtime.parser.Parser.process(Parser.java:307)
[junit] at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:105)
[junit] at
org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1119)
[junit] at
org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:1074)
[junit] at
org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1187)
[junit] at
org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java:1153)
[junit] at
org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:219)
[junit] at
org.apache.velocity.test.BaseEvalTestCase.evaluate(BaseEvalTestCase.java:99)
[junit] at
org.apache.velocity.test.BaseEvalTestCase.assertEvalEquals(BaseEvalTestCase.java:85)
[junit] at
org.apache.velocity.test.issues.Velocity614TestCase.testIt(Velocity614TestCase.java:37)
> Impossible to escape '#' if followed by text and parenthesis(
> "\#something(Stuff)" renders with the '\')
> --------------------------------------------------------------------------------------------------------
>
> Key: VELOCITY-614
> URL: https://issues.apache.org/jira/browse/VELOCITY-614
> Project: Velocity
> Issue Type: Bug
> Affects Versions: 1.6
> Environment: I don't think it is relevant but still: CPU Intel
> Pentium D, windows XP SP3, JRE 1.6.0_07, Velocity 1.6-beta1
> Reporter: Guillaume Polet
> Priority: Minor
> Attachments: Velocity614TestCase.java
>
>
> "#something(Stuff)" in your templates (without the double quotes) causes a
> parse error.
> "\#something(Stuff)" in your template (without the double quotes) renders as
> "\#something(Stuff)"
> Either the first line should go through just fine, or the next one should not
> render the '\'
> This typically happens when you try to generate JavaDoc for overriding
> methods.
> Don't hesitate to contact me if this is not clear enough or if you are unable
> to reproduce this issue.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]