[
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: [email protected]
For additional commands, e-mail: [email protected]