commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r1023471 - /commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonLoader.java
Date Sun, 17 Oct 2010 12:01:58 GMT
Author: mturk
Date: Sun Oct 17 12:01:57 2010
New Revision: 1023471

URL: http://svn.apache.org/viewvc?rev=1023471&view=rev
Log:
DAEMON-177 Use getTargetException instead getCause. Modify the Nick's patch by hand, cause
previous was already applied

Modified:
    commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonLoader.java

Modified: commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonLoader.java
URL: http://svn.apache.org/viewvc/commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonLoader.java?rev=1023471&r1=1023470&r2=1023471&view=diff
==============================================================================
--- commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonLoader.java
(original)
+++ commons/proper/daemon/trunk/src/java/org/apache/commons/daemon/support/DaemonLoader.java
Sun Oct 17 12:01:57 2010
@@ -190,7 +190,7 @@ public final class DaemonLoader
 
         }
         catch (InvocationTargetException e) {
-            Throwable thrown = e.getCause();
+            Throwable thrown = e.getTargetException();
             /* DaemonInitExceptions can fail with a nicer message */
             if (thrown instanceof DaemonInitException) {
                 failed(((DaemonInitException) thrown).getMessageWithCause());



Mime
View raw message