Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-928

Velocity parse error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 2.0, 2.1
    • None
    • None
    • None

    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.

      Attachments

        Activity

          People

            cbrisson Claude Brisson
            wls1036 郑剑峰
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: