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

Parsing error when defining a Map where the last entry is a reference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 1.5
    • 1.6
    • Engine
    • None
    • Windows

    Description

      When defining a map like this:

      #set($map =

      {"param1":"test", "param2":$test}

      )

      I get a parsing exception:
      Encountered "}" at line .....
      Was expecting one of:
      "," ...
      "}" ...

      However the problem happens only, if the last argument is a reference - as opposed to a hard coded value - so if i define the map like this:
      #set($map =

      {"param2":$test, "param1":"test"}

      )
      it works fine.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gdeinhammer Guido Deinhammer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: