scolebourne 2003/07/26 07:22:21
Modified: lang/src/java/org/apache/commons/lang/exception
ExceptionUtils.java
Log:
Fix bug in isNestedThrowable, shown on JDK<1.4
Revision Changes Path
1.30 +2 -2
jakarta-commons/lang/src/java/org/apache/commons/lang/exception/ExceptionUtils.java
Index: ExceptionUtils.java
===================================================================
RCS file:
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/exception/ExceptionUtils.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- ExceptionUtils.java 26 Jul 2003 13:05:21 -0000 1.29
+++ ExceptionUtils.java 26 Jul 2003 14:22:21 -0000 1.30
@@ -354,7 +354,7 @@
for (int i = 0, isize = CAUSE_METHOD_NAMES.length; i < isize; i++) {
try {
Method method = cls.getMethod(CAUSE_METHOD_NAMES[i], null);
- if (method != null) {
+ if (method != null &&
Throwable.class.isAssignableFrom(method.getReturnType())) {
return true;
}
} catch (NoSuchMethodException ignored) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]