[ http://issues.apache.org/jira/browse/VELOCITY-359?page=all ]

Will Glass-Husain updated VELOCITY-359:
---------------------------------------

    Bugzilla Id:   (was: 33669)
    Fix Version: 1.5
    Description: 
#if(...) #end works but #if(...)#end

Stacktrace:

org.apache.velocity.exception.ParseErrorException: Encountered "#en
d\n" at line 61, column 44.
Was expecting one of:
    "(" ...
    <RPAREN> ...
    <ESCAPE_DIRECTIVE> ...
    <SET_DIRECTIVE> ...
    "\\\\" ...
    "\\" ...
    <TEXT> ...
    <SINGLE_LINE_COMMENT> ...
    "*#" ...
    "*#" ...
    <STRING_LITERAL> ...
    "if" ...
    "stop" ...
    <NUMBER_LITERAL> ...
    <WORD> ...
    <DOT> ...
    "{" ...
    "}" ...
    <IDENTIFIER> ...

If you wonder why we write such stupid statements: We use velocity inside a CMS
where it is possible to leave texts blank inside an #if-block.

  was:
#if(...) #end works but #if(...)#end

Stacktrace:

org.apache.velocity.exception.ParseErrorException: Encountered "#en
d\n" at line 61, column 44.
Was expecting one of:
    "(" ...
    <RPAREN> ...
    <ESCAPE_DIRECTIVE> ...
    <SET_DIRECTIVE> ...
    "\\\\" ...
    "\\" ...
    <TEXT> ...
    <SINGLE_LINE_COMMENT> ...
    "*#" ...
    "*#" ...
    <STRING_LITERAL> ...
    "if" ...
    "stop" ...
    <NUMBER_LITERAL> ...
    <WORD> ...
    <DOT> ...
    "{" ...
    "}" ...
    <IDENTIFIER> ...

If you wonder why we write such stupid statements: We use velocity inside a CMS
where it is possible to leave texts blank inside an #if-block.

    Environment: 
Operating System: Windows XP
Platform: PC

  was:
Operating System: Windows XP
Platform: PC

      Assign To:     (was: Velocity-Dev List)

> #if(some expression)#end causes ParseException
> ----------------------------------------------
>
>          Key: VELOCITY-359
>          URL: http://issues.apache.org/jira/browse/VELOCITY-359
>      Project: Velocity
>         Type: Bug
>   Components: Source
>     Versions: 1.3.1
>  Environment: Operating System: Windows XP
> Platform: PC
>     Reporter: Peter Romianowski
>      Fix For: 1.5

>
> #if(...) #end works but #if(...)#end
> Stacktrace:
> org.apache.velocity.exception.ParseErrorException: Encountered "#en
> d\n" at line 61, column 44.
> Was expecting one of:
>     "(" ...
>     <RPAREN> ...
>     <ESCAPE_DIRECTIVE> ...
>     <SET_DIRECTIVE> ...
>     "\\\\" ...
>     "\\" ...
>     <TEXT> ...
>     <SINGLE_LINE_COMMENT> ...
>     "*#" ...
>     "*#" ...
>     <STRING_LITERAL> ...
>     "if" ...
>     "stop" ...
>     <NUMBER_LITERAL> ...
>     <WORD> ...
>     <DOT> ...
>     "{" ...
>     "}" ...
>     <IDENTIFIER> ...
> If you wonder why we write such stupid statements: We use velocity inside a 
> CMS
> where it is possible to leave texts blank inside an #if-block.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to