You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Nathan Bubna (JIRA)" <de...@velocity.apache.org> on 2010/03/28 21:00:27 UTC

[jira] Resolved: (VELOCITY-755) Maps should be stored in the order they are defined

     [ https://issues.apache.org/jira/browse/VELOCITY-755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nathan Bubna resolved VELOCITY-755.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0
                   1.7

A good idea, thanks.

> Maps should be stored in the order they are defined
> ---------------------------------------------------
>
>                 Key: VELOCITY-755
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-755
>             Project: Velocity
>          Issue Type: Improvement
>          Components: Engine
>    Affects Versions: 1.6.2
>            Reporter: Canny
>            Priority: Minor
>             Fix For: 1.7, 2.0
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org