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

ForEach (Iteration) issue after upgrading from 1.5 to 1.7

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Tomcat 6, JDK 1.6

      Description

      After, upgrading to velocity engine `1.7` from `1.5` an issue occurs which was not with 1.5. To explain the issue I would have to show a code snippet:

      #foreach($someVariable in $someCollection)
      #foreach($anotherVariable in $someVariable.$anotherCollection)
      $anotherVariable.someAttribute ## This expression print in the browser as is

        1. but if I do this way
          $anotherVariable.get("someAttribute") ## works fine!
          #end
          #end

      This is happening after the upgrade (which is in `1.7`) and if I rollback the upgrade (move back to `1.5`) then I don't have to it in other way which I mention in above code snippet.

        Attachments

          Activity

            People

            • Assignee:
              claude Claude Brisson
              Reporter:
              ramiz.uddin Ramiz Uddin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: