You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ni...@apache.org on 2006/05/24 12:38:55 UTC

svn commit: r409125 - /jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/generic/DispatchCommand.java

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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org