diff options
author | Andy Clement <andrew.clement@gmail.com> | 2013-01-28 08:46:29 -0800 |
---|---|---|
committer | Andy Clement <andrew.clement@gmail.com> | 2013-01-28 08:46:29 -0800 |
commit | 25433050e15c2b6dd2b0af046f7c0c380383667a (patch) | |
tree | e979935a0edaacafb66991772b6be64d16adb80f | |
parent | f1a8813c3b200f7564f5247b4f02143fde35f0c6 (diff) | |
download | aspectj-25433050e15c2b6dd2b0af046f7c0c380383667a.tar.gz aspectj-25433050e15c2b6dd2b0af046f7c0c380383667a.zip |
better exit code for out of memory
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 d39a6a06c..f66408ebe 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 @@ -256,7 +256,7 @@ public class Main { } catch (OutOfMemoryError outOfMemory) { IMessage outOfMemoryMessage = new Message(OUT_OF_MEMORY_MSG, null, true); holder.handleMessage(outOfMemoryMessage); - systemExit(holder); // we can't reasonably continue from this point. + System.exit(-1); // we can't reasonably continue from this point. } finally { CompilationAndWeavingContext.reset(); Dump.reset(); @@ -466,6 +466,7 @@ public class Main { } System.exit(0); } + /** Messages to the user */ protected void outMessage(String message) { // XXX coordinate with MessagePrinter |