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

Maps should be stored in the order they are defined

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.6.2
    • 1.7, 2.0
    • Engine
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: