diff --git a/src/java/org/apache/commons/lang/exception/ExceptionUtils.java b/src/java/org/apache/commons/lang/exception/ExceptionUtils.java index 9f6074698..295642843 100644 --- a/src/java/org/apache/commons/lang/exception/ExceptionUtils.java +++ b/src/java/org/apache/commons/lang/exception/ExceptionUtils.java @@ -42,7 +42,7 @@ import org.apache.commons.lang.SystemUtils; * @author Gary Gregory * @author Pete Gieser * @since 1.0 - * @version $Id: ExceptionUtils.java,v 1.40 2004/09/30 06:21:40 bayard Exp $ + * @version $Id: ExceptionUtils.java,v 1.41 2004/09/30 07:03:25 bayard Exp $ */ public class ExceptionUtils { @@ -434,7 +434,9 @@ public class ExceptionUtils { return -1; } for (int i = fromIndex; i < throwables.length; i++) { - if (type.isAssignableFrom(throwables[i].getClass())) { +// TODO: decide on whether to include this +// if (type.isAssignableFrom(throwables[i].getClass())) { + if (throwables[i].getClass().equals(type)) { return i; } } diff --git a/src/java/org/apache/commons/lang/exception/NestableDelegate.java b/src/java/org/apache/commons/lang/exception/NestableDelegate.java index b215f39d5..f0b247476 100644 --- a/src/java/org/apache/commons/lang/exception/NestableDelegate.java +++ b/src/java/org/apache/commons/lang/exception/NestableDelegate.java @@ -41,7 +41,7 @@ import java.util.List; * @author Sean C. Sullivan * @author Stephen Colebourne * @since 1.0 - * @version $Id: NestableDelegate.java,v 1.24 2004/09/30 06:21:40 bayard Exp $ + * @version $Id: NestableDelegate.java,v 1.25 2004/09/30 07:03:25 bayard Exp $ */ public class NestableDelegate implements Serializable { @@ -236,7 +236,9 @@ public class NestableDelegate implements Serializable { + fromIndex + " >= " + throwables.length); } for (int i = fromIndex; i < throwables.length; i++) { - if (type.isAssignableFrom(throwables[i].getClass())) { +// TODO: decide on whether to include this +// if (type.isAssignableFrom(throwables[i].getClass())) { + if (throwables[i].getClass().equals(type)) { return i; } }