[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: APT and jdt.compiler.tool plugins

Eric Rizzo a écrit :
In the course of working on an Eclipse-based tool, I've noticed that our debug runtime is complaining that it can't resolve a few of the JDT bundles related to APT and compiler.tool. I'm pretty sure the reason is that those plugins require a J2SE-16. execution environment but our tool is designed to run under 1.5.
My question is, what, if anything, will we be missing out on by not supporting those plugins? I reviewed some info on the APT home page, but I would like to know if all annotation processing functionality in Eclipse essentially requires 1.6 or not.
If you are using 1.5, you should be able to use the IDE APT5 support. The ones that require 1.6 are specific for the APT6 support. This includes the apt support inside the batch compiler.

Similarly, it appears that the jdt.compiler.tool plugin is related to JSR 199 support, but I don't really know what functionality in Eclipse that maps to. Any insight about that is appreciated, too.
The jsr199 support is used if you are using 1.6 code and you want to be able to compile java code programmatically.
So from the IDE itself, it is not used. These classes however are present in the ecj-XXX.jar available with every eclipse build, where XXX is the build ID.
This allows users to simply add this jar on their classpath to use the Eclipse compiler inside ant task, jsr199 calls or apt processing.


HTH,
--
Olivier