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

Parser regression when || follow a Velocity expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 2.2
    • 2.2
    • None

    Description

      The following fail in Velocity 2.2-SNAPSHOT:

      $var||
      

      but works fine in 1.7.

      The workarounds is to put the expression inside {} (as in ${var})

      Since || is a wiki syntax in our case it's not rare to see table cells or a link reference containing a Velocity variable (without any {} protection since it was working well in 1.7).

      Attachments

        Activity

          People

            cbrisson Claude Brisson
            tmortagne Thomas Mortagne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: