Environments which are supposed to work (tested at least once):
- APT + Mirror API annotation processing apt tool from command line
- JSR-269-capable javac from command line
- APT + Mirror API annotation processing apt tool from ANT with apt task
- JSR-269-capable javac from ANT as part of the operation of the normal javac task
- Eclipse Annotation Processing support for APT + Mirror API annotation processing
- Eclipse supports this from Eclipse 3.2, tested with Eclipse 3.3 and Eclipse 3.4,
- Eclipse Annotation Processing support for JSR-269 annotation processing
- Eclipse supports this from Eclipse 3.3, tested with Eclipse 3.3 and Eclipse 3.4, most versions of Eclipse needs to be patched to fix Eclipse bug #256184 (read the corresponding discussion in the Eclipse bug comments).
You need to patch the org.eclipse.jdt.compiler.apt_*.jar
in Eclipse, as it contains a bug which can't be worked around. You need
to replace the TypesImpl class in that jar with the file attached to this page. The
patched source to this file is also attached to this page. To fix the versions
prior to 3.4.1, you need to patch this file manually.
The 3.5 Milestone 4
contains the fix for this bug.
Bugfix release 3.4.2 contains the fix to this bug.
|
 Updating...
Robert Varga, 24 Jan 2009, 06:31
Robert Varga, 24 Jan 2009, 06:31
|