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
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]