Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] problems with generated code

Batch mode works as you said. Is there any workaround to make it work in Eclipse? We were planning to provide the plug-in to our customers and the experience won't be good if we ask them to compile from the command line.

I will raise a bug for this. 


--- On Fri, 10/28/11, Andrew Eisenberg <andrew@xxxxxxxxxxxx> wrote:

> From: Andrew Eisenberg <andrew@xxxxxxxxxxxx>
> Subject: Re: [aspectj-users] problems with generated code
> To: aspectj-users@xxxxxxxxxxx
> Date: Friday, October 28, 2011, 12:32 PM
> AJDT does not fully support Java 5
> annotation processors, and does not
> support Java 6 style processors at all.
> What is supported is the following:
> 1. generating new files
> 2. adding compile errors or warnings to existing files
> However, we do not run the AspectJ compiler in a loop to
> handle new
> files generated from APT.  This is required for your
> situation.  I
> believe that running the aspectj compiler in batch mode
> (ie- from the
> command line) will properly handle this situation.
> The reason why this has not been implemented is that we
> have not had
> this requirement in the past.  Could you raise a bug
> for this inside
> of bugzilla?
> On Thu, Oct 27, 2011 at 12:53 PM, Asad Jawahar <room7hostel4@xxxxxxxxx>
> wrote:
> > I am using AspectJ in a project that also has my
> custom Java 5 style annotation peocessor. The annotation
> processor generates some code that has no AspectJ dependency
> at all. The problem appears to be that the AJDT builder is
> ignoring the generated files and they and they don't get
> compiled. I get Java compilation errors when I try to use
> the generated types anywhere in the
> > project. If I disable AspectJ (AspectJ tools >
> Remove AspectJ Capability), the code compiles fine. At this
> point if I convert the project back to AspectJ and do a
> clean, the errors come back. Is this a supported  scenario?
> If so, is there something additional I need to do in my
> annotation processor to make the builder aware of the
> generated files?
> >
> > Thanks,
> > -Asad
> >
> > _______________________________________________
> > aspectj-users mailing list
> > aspectj-users@xxxxxxxxxxx
> >
> >
> _______________________________________________
> aspectj-users mailing list
> aspectj-users@xxxxxxxxxxx

Back to the top