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

郑剑峰 updated VELOCITY-928:
-------------------------
    Description: 
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.

  was:
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 

but i change the template to "$a.r(a)" it's ok

Looking forward to getting  reply. Thanks.


> 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-unsubscr...@velocity.apache.org
For additional commands, e-mail: dev-h...@velocity.apache.org

Reply via email to