Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 363115

Summary: Add support for code generation using annotation processors in AspectJ Eclipse builder
Product: [Tools] AJDT Reporter: Asad <room7hostel4>
Component: CoreAssignee: AJDT-inbox <AJDT-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: andrew.eisenberg
Version: 2.1.3   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:

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.