cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [2/8] git commit: Fix the printing of the suppressed exceptions on Java6
Date Thu, 20 Mar 2014 17:07:19 GMT
Fix the printing of the suppressed exceptions on Java6


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/b448ab07
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/b448ab07
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/b448ab07

Branch: refs/heads/2.7.x-fixes
Commit: b448ab07073604ac21ed3352ad438f570affeb99
Parents: 32465e0
Author: Daniel Kulp <dkulp@apache.org>
Authored: Thu Mar 20 11:03:56 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Thu Mar 20 13:03:46 2014 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/cxf/tools/common/ToolException.java   | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/b448ab07/tools/common/src/main/java/org/apache/cxf/tools/common/ToolException.java
----------------------------------------------------------------------
diff --git a/tools/common/src/main/java/org/apache/cxf/tools/common/ToolException.java b/tools/common/src/main/java/org/apache/cxf/tools/common/ToolException.java
index e353b23..5fc2cda 100644
--- a/tools/common/src/main/java/org/apache/cxf/tools/common/ToolException.java
+++ b/tools/common/src/main/java/org/apache/cxf/tools/common/ToolException.java
@@ -112,13 +112,13 @@ public class ToolException extends RuntimeException {
 
         // Print suppressed exceptions, if any
         for (Throwable se : suppressed) {
-            printThrowable(se, ps, pfx + "/t", "Suppressed: ");
+            printThrowable(se, ps, pfx + "\t", "Suppressed: ");
         }
 
         // Print cause, if any
         Throwable ourCause = getCause();
         if (ourCause != null && (!hasSuppressed || ourCause != suppressed.get(0)))
{
-            printThrowable(ourCause, ps, pfx + "/t", "Caused by: ");
+            printThrowable(ourCause, ps, pfx + "\t", "Caused by: ");
         }
     }    
     private void printThrowable(Throwable t, PrintStream ps, String pfx, String cap) {
@@ -143,7 +143,7 @@ public class ToolException extends RuntimeException {
             this.getClass().getMethod("addSuppressed", Throwable.class).invoke(this, t);
         } catch (Throwable t2) {
             //java < 1.7
-            suppressed.add(t2);
+            suppressed.add(t);
             if (getCause() == null) {
                 initCause(t);
             }


Mime
View raw message