View Full Version : Can Spring use LinkedMap instead of LinkedHashMap for jdk1.3
garpinc2
Sep 21st, 2004, 01:13 PM
Can spring be changed to use org.apache.commons.collections.map.LinkedMap instead of LinkedHashMap for jdk 1.3 compatiblility? If so please email me at KeithGarry.Boyce at bcbsma.com for status.
garpinc2
Sep 23rd, 2004, 10:24 AM
Have I put this in the right forum? No one has responded.
robh
Sep 23rd, 2004, 12:07 PM
Which component are you refering to? Spring should run just fine on Java 1.3 but it can only be built on 1.4. If you have found a module that has a 1.4 dependency with no 1.3 alternative please post details of the component in question.
Rob
garpinc2
Sep 24th, 2004, 03:00 PM
What I am saying is that there is no need to lose functionality in jdk 1.3 because the LinkedHashMap is not a class in jdk1.3. If you use LinkedMap instead then I will have all the functionality that is lost in jdk 1.3 with respect to ordering etc.
Juergen Hoeller
Sep 27th, 2004, 08:43 AM
Done. To avoid a dependency on Commons Collections though, I've introduced a CollectionFactory helper which prefers JDK 1.4 LinkedHashMap, then Commons Collections 3.x' LinkedMap, then the standard HashMap.
See the JIRA issue for details:
http://opensource.atlassian.com/projects/spring/browse/SPR-352
Juergen
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.