Author: niallp
Date: Wed May 24 03:38:54 2006
New Revision: 409125
URL: http://svn.apache.org/viewvc?rev=409125&view=rev
Log:
Modify DispatchCommand so that it will compile using JDK 1.3 (remove JDK 1.4
method).
JIRA Issue: CHAIN-11
Modified:
jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/generic/DispatchCommand.java
Modified:
jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/generic/DispatchCommand.java
URL:
http://svn.apache.org/viewvc/jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/generic/DispatchCommand.java?rev=409125&r1=409124&r2=409125&view=diff
==============================================================================
---
jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/generic/DispatchCommand.java
(original)
+++
jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/generic/DispatchCommand.java
Wed May 24 03:38:54 2006
@@ -49,7 +49,10 @@
try {
return evaluateResult(methodObject.invoke(this,
getArguments(context)));
} catch (InvocationTargetException e) {
- if (e.getCause() instanceof Exception) throw (Exception)
e.getCause();
+ Throwable cause = e.getTargetException();
+ if (cause instanceof Exception) {
+ throw (Exception)cause;
+ }
throw e;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]