]> source.dussan.org Git - aspectj.git/commitdiff
better exit code for out of memory
authorAndy Clement <andrew.clement@gmail.com>
Mon, 28 Jan 2013 16:46:29 +0000 (08:46 -0800)
committerAndy Clement <andrew.clement@gmail.com>
Mon, 28 Jan 2013 16:46:29 +0000 (08:46 -0800)
org.aspectj.ajdt.core/src/org/aspectj/tools/ajc/Main.java

index d39a6a06c9aeb9ff9d7bb3831185584df324c612..f66408ebed2e48c785efcb1bae7f517f94ebd160 100644 (file)
@@ -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