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
This commit is contained in:
Stephen Colebourne 2005-10-08 10:10:04 +00:00
parent 93724da635
commit f836ff09ee
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@ import java.util.Map;
import java.util.Set; import java.util.Set;
import org.apache.commons.collections.Factory; import org.apache.commons.collections.Factory;
import org.apache.commons.collections.FunctorException;
import org.apache.commons.collections.MultiMap; import org.apache.commons.collections.MultiMap;
import org.apache.commons.collections.iterators.EmptyIterator; import org.apache.commons.collections.iterators.EmptyIterator;
import org.apache.commons.collections.iterators.IteratorChain; import org.apache.commons.collections.iterators.IteratorChain;
@ -425,7 +426,7 @@ public class MultiValueMap extends AbstractMapDecorator implements MultiMap {
try { try {
return clazz.newInstance(); return clazz.newInstance();
} catch (Exception ex) { } catch (Exception ex) {
throw new RuntimeException("Cannot instantiate class: " + clazz, ex); throw new FunctorException("Cannot instantiate class: " + clazz, ex);
} }
} }
} }