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

String literal "\\" parses incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7
    • 1.7, 2.0
    • Engine
    • None

    Description

      Given the following VTL:

      #set($var = "
      " )
      #set($var2 = "${var}")

      results in the following parse error:

      Encountered "${" at test.vm[line 2, column 15]
      Was expecting one of:
      <RPAREN> ...
      ...

      the problem is that when parsing the string literal "
      " the second double quote is escaped. This was actually a bug that was introduced in 1.6.x, but I don't think we necessarily need to fix it in that branch.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              byronvf Byron Foster
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: