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)" <ji...@apache.org> on 2021/02/26 18:13:00 UTC

[jira] [Closed] (VELOCITY-928) Velocity parse error

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

Claude Brisson closed VELOCITY-928.
-----------------------------------

> Velocity parse error
> --------------------
>
>                 Key: VELOCITY-928
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-928
>             Project: Velocity
>          Issue Type: Bug
>    Affects Versions: 2.0, 2.1
>            Reporter: 郑剑峰
>            Assignee: Claude Brisson
>            Priority: Major
>
> hi
> Velocity to evaluate the string template "$a.r(a" , it throw an exception 
> ERROR org.apache.velocity.parser - appmd: Encountered "<EOF>" at line 1, column 6.
> Was expecting one of:
>     "[" ...
>     "," ...
>     ")" ...
>     <WHITESPACE> ...
>     <NEWLINE> ...
>     "-" ...
>     "+" ...
>     "*" ...
>     "/" ...
>     "%" ...
>     <LOGICAL_AND> ...
>     <LOGICAL_OR> ...
>     <LOGICAL_LT> ...
>     <LOGICAL_LE> ...
>     <LOGICAL_GT> ...
>     <LOGICAL_GE> ...
>     <LOGICAL_EQUALS> ...
>     <LOGICAL_NOT_EQUALS> ...
> change the template to "/$a.r(a" the error still,and "//$a.r(a" still 
> and the "$a.r(a)" is a raw string not a expression
> but i change the template to "$a.r(a)" it's ok
> Looking forward to getting  reply. Thanks.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org