From: <one...@us...> - 2003-02-15 01:14:40
|
Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/collections In directory sc8-pr-cvs1:/tmp/cvs-serv5415/hibernate/collections Modified Files: SortedMap.java SortedSet.java Log Message: fix problem wrapping sorted collections don't update if mutable='false' Index: SortedMap.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/collections/SortedMap.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** SortedMap.java 26 Nov 2002 03:35:41 -0000 1.22 --- SortedMap.java 15 Feb 2003 01:14:37 -0000 1.23 *************** *** 57,69 **** this.comparator = comparator; } ! ! //need to distinguish between the different 2-argument constructors ! /*public SortedMap(SessionImplementor session, Comparator comp) { ! super(session); ! this.map = new TreeMap(comp); ! }*/ ! public SortedMap(SessionImplementor session, java.util.SortedMap map) { super(session, map); } --- 57,64 ---- this.comparator = comparator; } ! public SortedMap(SessionImplementor session, java.util.SortedMap map) { super(session, map); + comparator = map.comparator(); } Index: SortedSet.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/collections/SortedSet.java,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -d -r1.22 -r1.23 *** SortedSet.java 1 Oct 2002 01:25:29 -0000 1.22 --- SortedSet.java 15 Feb 2003 01:14:37 -0000 1.23 *************** *** 58,61 **** --- 58,62 ---- public SortedSet(SessionImplementor session, java.util.SortedSet set) { super(session, set); + comparator = set.comparator(); } |