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

Parser regression when || follow a Velocity expression

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: