cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject [3/5] git commit: Fix the printing of the suppressed exceptions on Java6
Date Thu, 20 Mar 2014 15:59:34 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/bf2536fd
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/bf2536fd
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/bf2536fd

Branch: refs/heads/master
Commit: bf2536fdaf82805af1e4f2d0b4a2430c7c29b09e
Parents: 52ec9e0
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 11:03:56 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/bf2536fd/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