From 5c255a657eb7c33e5aea88c03f65b5b7287eb2df Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Fri, 27 Feb 2004 00:24:05 +0000 Subject: [PATCH] Fix implementation of cloning bug 27159, identified by Fabrizio Giustina git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@131596 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/collections/map/AbstractHashedMap.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/commons/collections/map/AbstractHashedMap.java b/src/java/org/apache/commons/collections/map/AbstractHashedMap.java index a0a425879..d0d9fd09d 100644 --- a/src/java/org/apache/commons/collections/map/AbstractHashedMap.java +++ b/src/java/org/apache/commons/collections/map/AbstractHashedMap.java @@ -46,7 +46,7 @@ import org.apache.commons.collections.MapIterator; * need for unusual subclasses is here. * * @since Commons Collections 3.0 - * @version $Revision: 1.11 $ $Date: 2004/02/18 01:13:19 $ + * @version $Revision: 1.12 $ $Date: 2004/02/27 00:24:05 $ * * @author java util HashMap * @author Stephen Colebourne @@ -1153,7 +1153,7 @@ public class AbstractHashedMap implements IterableMap { cloned.values = null; cloned.modCount = 0; cloned.size = 0; - init(); + cloned.init(); cloned.putAll(this); return cloned;