diff options
author | ehilsdal <ehilsdal> | 2002-12-16 22:41:15 +0000 |
---|---|---|
committer | ehilsdal <ehilsdal> | 2002-12-16 22:41:15 +0000 |
commit | f50d1eeb894cbd2e5ed8ee619bcdf704e0187ba2 (patch) | |
tree | b650a19d2a39370abea9dda99b66524e2c1f0758 /org.aspectj.ajdt.core | |
parent | 2438efbd210c29b554830476541ab0f70b72c92c (diff) | |
download | aspectj-f50d1eeb894cbd2e5ed8ee619bcdf704e0187ba2.tar.gz aspectj-f50d1eeb894cbd2e5ed8ee619bcdf704e0187ba2.zip |
refactoring AbortException to make it clearer when we
want to abort w/o message, and to always stuff in a stack trace
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java | 4 | ||||
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java index 1cecb4a76..a6c8368fc 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/ajc/AjdtCommand.java @@ -55,7 +55,7 @@ public class AjdtCommand implements ICommand { && buildManager.batchBuild(config, counter) && !counter.hasErrors()); } catch (AbortException ae) { - if (AbortException.ABORT.equals(ae)) { + if (ae.isSilent()) { throw ae; } else { MessageUtil.abort(handler, ABORT_MESSAGE, ae); @@ -107,7 +107,7 @@ public class AjdtCommand implements ICommand { if (null != message) { IMessage.Kind kind = inferKind(message); handler.handleMessage(new Message(message, kind, null, null)); - throw AbortException.ABORT; // XXX tangled - assumes handler prints? + throw new AbortException(); // XXX tangled - assumes handler prints? } return config; } diff --git a/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java b/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java index e698d2b40..4c8e684e8 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java @@ -183,7 +183,7 @@ public class Main { } } } catch (AbortException ae) { - if (AbortException.ABORT.equals(ae)) { + if (ae.isSilent()) { quit(); } else { IMessage message = ae.getIMessage(); |