From f836ff09ee26537dc66be22532c9baf21beb0cbf Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Sat, 8 Oct 2005 10:10:04 +0000 Subject: [PATCH] Enable compilation on JDK1.3 git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk@307283 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/commons/collections/map/MultiValueMap.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/commons/collections/map/MultiValueMap.java b/src/java/org/apache/commons/collections/map/MultiValueMap.java index 316b35cc3..f247bc2af 100644 --- a/src/java/org/apache/commons/collections/map/MultiValueMap.java +++ b/src/java/org/apache/commons/collections/map/MultiValueMap.java @@ -24,6 +24,7 @@ import java.util.Map; import java.util.Set; import org.apache.commons.collections.Factory; +import org.apache.commons.collections.FunctorException; import org.apache.commons.collections.MultiMap; import org.apache.commons.collections.iterators.EmptyIterator; import org.apache.commons.collections.iterators.IteratorChain; @@ -425,7 +426,7 @@ public class MultiValueMap extends AbstractMapDecorator implements MultiMap { try { return clazz.newInstance(); } catch (Exception ex) { - throw new RuntimeException("Cannot instantiate class: " + clazz, ex); + throw new FunctorException("Cannot instantiate class: " + clazz, ex); } } }