Community
Participate
Working Groups
Getting an out of memory error when compiling with Ajc 1.1 RC1. I know this is not very descriptive, but maybe you can point me into a direction of getting more output. here some additional information though: Code base is medium size (about 1500 classfiles) I removed all my aspects and still receive the error. Running it from the command line: ajc -classpath whateveritis -sourceroots whateveritis -d whateveritis
I believe this is a duplicate bug that says we need to handle OutOfMemory in a friendlier way. Hopefully you can resolve this by following the instructions in the FAQ: http://dev.eclipse.org/viewcvs/indextech.cgi/~checkout~/aspectj- home/doc/faq.html#q:ajcoom *** This bug has been marked as a duplicate of 35636 ***
Occurs on fresh install of winXP with one simple aspect package com.x.y; public aspect CurrTableUpdateAspect { pointcut printouts(); before(): printouts() { System.out.println("*** Entering printMessage ***"); } after(): printouts() { System.out.println("*** Exiting printMessage ***"); } } There are 687 java files in the default.lst.
I've made a small update to the compiler to handle OutOfMemoryError in a much more graceful way. An ajc compile running out of memory will now produce the following message and then exit: AspectJ <version> ran out of memory during compilation: Please increase the memory available to ajc by editing the ajc script found in your AspectJ installation directory. The -Xmx parameter value should be increased from 64M (default) to 128M or even 256M. See the AspectJ FAQ available from the documentation link on the AspectJ home page at http://www.eclipse.org/aspectj
updating target flag to indicate inclusion in 1.2 release.