]> source.dussan.org Git - aspectj.git/commitdiff
384189: actually respect dont dump on exception setting V1_7_0
authorAndy Clement <andrew.clement@gmail.com>
Tue, 3 Jul 2012 20:46:29 +0000 (13:46 -0700)
committerAndy Clement <andrew.clement@gmail.com>
Tue, 3 Jul 2012 20:46:29 +0000 (13:46 -0700)
org.aspectj.matcher/src/org/aspectj/weaver/Dump.java

index 8d9aefda72c98a3a032f786bf6d6c99d6eb31999..103e9fec2ea1738b366a4326705692e3857c80b3 100644 (file)
@@ -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);
                }