rolled back BUG#30929 pending opinions
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137945 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0a08b6e7ef
commit
5fdb8a39db
|
@ -42,7 +42,7 @@ import org.apache.commons.lang.SystemUtils;
|
|||
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
|
||||
* @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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue