From: Andy Clement Date: Tue, 3 Jul 2012 20:46:29 +0000 (-0700) Subject: 384189: actually respect dont dump on exception setting X-Git-Tag: V1_7_0 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5d0e1860cb5069b266ba70d33bc356d36e285a90;p=aspectj.git 384189: actually respect dont dump on exception setting --- diff --git a/org.aspectj.matcher/src/org/aspectj/weaver/Dump.java b/org.aspectj.matcher/src/org/aspectj/weaver/Dump.java index 8d9aefda7..103e9fec2 100644 --- a/org.aspectj.matcher/src/org/aspectj/weaver/Dump.java +++ b/org.aspectj.matcher/src/org/aspectj/weaver/Dump.java @@ -106,6 +106,9 @@ public class Dump { } public static String dumpWithException(IMessageHolder messageHolder, Throwable th) { + if (!getDumpOnException()) { + return null; + } if (trace.isTraceEnabled()) { trace.enter("dumpWithException", null, new Object[] { messageHolder, th }); } @@ -133,6 +136,9 @@ public class Dump { } public static String dumpOnExit(IMessageHolder messageHolder, boolean reset) { + if (!getDumpOnException()) { + return null; + } if (trace.isTraceEnabled()) { trace.enter("dumpOnExit", null, messageHolder); }