Bug 363115 - Add support for code generation using annotation processors in AspectJ Eclipse builder
Summary: Add support for code generation using annotation processors in AspectJ Eclips...
Status: NEW
Alias: None
Product: AJDT
Classification: Tools
Component: Core (show other bugs)
Version: 2.1.3   Edit
Hardware: All Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-07 19:57 EST by Asad CLA
Modified: 2011-11-08 16:49 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Asad CLA 2011-11-07 19:57:58 EST
Build Identifier: 2.2.0.e36x-20110

AspectJ builder does not run the compiler in a loop so code generated by annotation processors does not get compiled. This is required for any annotation processor that generates code to work in Eclipse. You can compile fine in batch mode.

Reproducible: Always

Steps to Reproduce:
1. Create an AspectJ project
2. Enable an annotation processor which generates code in that project.
3. Attempt to reference generated classes will result in compilation errors.
4. Remove AspectJ capability, the code will start compiling.
Comment 1 Andrew Eisenberg CLA 2011-11-08 00:14:37 EST
Please be specific here.  Are you looking for integration with a Java 5 or Java 6 style annotation processor?

This is an AJDT issue, so moving it to the AJDT project.
Comment 2 Andrew Eisenberg CLA 2011-11-08 00:17:00 EST
I should have been more clear.  Based on the mailing list discussion, you said that this is a Java 5 style annotation processor.  This is something that needs to be fixed in AJDT.  A Java 6 style annotation processor must be fixed in the compiler itself.
Comment 3 Asad CLA 2011-11-08 16:49:04 EST
This is a Java 5 style annotation processor. We had originally implemented a Java 6 annotation processor but it did not work at all. Based on guidance we got from the mailing list, we re-implemented it using Java 5 style.