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

error in parsing white space between #elseif and condition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 1.2
    • None
    • Testing
    • None
    • Operating System: All
      Platform: PC
    • 6146

    Description

      the following statement produces an error:

      #if(!$class.primitive)item#elseif
      ($class.name == "char")new Character(item)#end
      #end

      [Generator.main]org.apache.velocity.exception.ParseErrorException: Encountered
      "\r\n" at line 3, column 34.
      Was expecting one of:
      "(" ...
      <WHITESPACE> ...

      org.apache.velocity.exception.ParseErrorException: Encountered "\r\n" at line 3,
      column 34.
      Was expecting one of:
      "(" ...
      <WHITESPACE> ...

      I would assume "\r\n" is WHITESPACE

      Attachments

        Activity

          People

            Unassigned Unassigned
            proetel@yahoo.com proetel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: