You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ge...@apache.org on 2005/12/13 01:09:47 UTC
svn commit: r356422 -
/jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/generic/DispatchCommand.java
Author: germuska
Date: Mon Dec 12 16:09:43 2005
New Revision: 356422
URL: http://svn.apache.org/viewcvs?rev=356422&view=rev
Log:
fix bug in handling 'InvocationTargetException'
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/viewcvs/jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/generic/DispatchCommand.java?rev=356422&r1=356421&r2=356422&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 Mon Dec 12 16:09:43 2005
@@ -49,7 +49,7 @@
try {
return evaluateResult(methodObject.invoke(this, getArguments(context)));
} catch (InvocationTargetException e) {
- if (e instanceof Exception) throw (Exception) e.getCause();
+ if (e.getCause() instanceof Exception) throw (Exception) e.getCause();
throw e;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org