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

Maps should be stored in the order they are defined

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.7, 2.0
    • Component/s: Engine
    • Labels:
      None

      Description

      If you create a map with Velocity like: #set( $monkey.Map =

      {"banana" : "good", "roast beef" : "bad"}

      ) the elements are not stored in the order they are defined. So I think a HashMap implemention is used for the map creation. It would be great if you switch over to a LinkedHashMap implementation, because you get a lot of benefits if you are heavy maps in your templates and the order is important.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cannyduck Canny
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: