commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r409125 - /jakarta/commons/proper/chain/trunk/src/java/org/apache/commons/chain/generic/DispatchCommand.java
Date Wed, 24 May 2006 10:38:55 GMT
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


Mime
View raw message