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

Parser bug with comments following a reference with a property

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      any

      Description

      The following template:

      #set( $map =

      { 'foo' : 'bar' }

      )
      $map.size()## ok
      $map.foo## not ok
      $map.foo ## ok with a space behind
      ${map.foo}## ok with curly braces
      $map## ok
      schmoo## ok

      gives the result :

      1bar## not ok
      bar bar

      {foo=bar}

      schmoo

      That is, "$map.foo##" is incorrectly parsed - the reference is resolved successfully, but the comment is considered schmoo.

        Attachments

          Activity

            People

            • Assignee:
              cbrisson Claude Brisson
              Reporter:
              cbrisson Claude Brisson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: