Hi Jonathan, > Why is that? Why does it need to recompile all dependent source files > when all I've changed is a whitespace or comment? Please note that I > am not changing the aspects or pointcuts here at all. What am I > missing? Has anyone else encountered this?
If more than just the file you are changing gets compiled after making a whitespace change that usually indicates a bug. We have fixed many of these over the years but there are still some lurking and some characteristic of your project/source is triggering the problem. Please raise a bugzilla for it: https://bugs.eclipse.org/bugs/enter_bug.cgi?product=AspectJ Ideally sharing the source with me will be the fastest way to get it resolved, but if that isn't possible perhaps we can narrow down the problem: - if you comment out the aspects (or pieces of them) does it still happen? - anything unique about the file you are changing compared to others? Is it affected by aspects, if so, what kind of advice/itds/declares. Do you have inner classes? are they anonymous? cheers Andy On 28 April 2011 12:28, Jonathan Su <jonat...@cloudwords.com> wrote: > Hi there, > > I'm currently using Eclipse 3.6.2 with AJDT 2.1.2 (which comes with > AspectJ 1.6.11), with incremental compilation turned on. There are a > couple of aspects advising the java sources as well as some third > party aspects (primarily those from Spring). > > I'm noticing in AJDT event trace view that when I change and save some > java source files (not the aspect source files), it first compiles the > changed file, then it proceed to recompile all source files that > import the changed file. Then it recompiles files that are dependent > on the recompiled files, so on and so forth. For some other source > files, It doesn't seem to do this as it only recompiles the saved > file. > > AJDT event trace reports successful incremental build - it compiles > the single changed file, then it hits "Examining whether any other > files now need compilation based on just compiling: <changed file>" > and proceed to report that it needs to recompile all the files that > reference the changed file. It then does this for 4 more iterations. > > Why is that? Why does it need to recompile all dependent source files > when all I've changed is a whitespace or comment? Please note that I > am not changing the aspects or pointcuts here at all. What am I > missing? Has anyone else encountered this? > > Because of this behavior, merely adding a whitespace or changing > comment causes a wait time for build, which is a behavior not present > with JDT projects. > > Thanks so much for your help. > Jonathan > _______________________________________________ > aspectj-users mailing list > aspectj-users@eclipse.org > https://dev.eclipse.org/mailman/listinfo/aspectj-users > _______________________________________________ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users