You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Tim Colson (Jira)" <ji...@apache.org> on 2021/02/12 19:03:00 UTC

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

    [ https://issues.apache.org/jira/browse/VELOCITY-928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17283921#comment-17283921 ] 

Tim Colson commented on VELOCITY-928:
-------------------------------------

Thx Mr. [~cbrisson] for a resolution to what seems to be a support request? It's been a year, seems like this could be closed, yes? 

> 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: 郑剑峰
>            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