Support Java6's javax.lang.model?
Brought to you by:
stoicflame
Hi-
I love the simplicity of using templates for code generation - I think APT-Jelly is a great project that I've been following for a few years. I finally have the opportunity to use it; however, I'm concerned if it doesn't support Java 6 that it will break. Do you currently support Java 6's standard API for annotation processing?
Thanks,
Adam
We use apt-jelly all the time in Java 6. What makes you think it wouldn't work?
Well, the APT from Java5 is based on Sun-specific APIs that have been superceded by new ones in Java 6 (JSR-269). While APT still works now, Sun might remove them in the future.
In Java 6, the separate APT tool has been integrated into javac. Also, all the Sun Mirror APIs (com.sun.mirror) have been standardized into javax.lang.model and the apt processing apis have turned into javax.annotation.processing.
http://java.sun.com/javase/6/docs/technotes/guides/apt/index.html
http://java.sun.com/javase/6/docs/api/javax/annotation/processing/Processor.html
I imagine there probably isn't a lot of work to move to the Java 6 model, I'm just not sure if that's on your radar or not.
-Adam
Got it. So you're just wondering about the plan moving forward. Thanks for the info. I can assure you that we'll make any necessary effort to ensure that APT-Jelly runs on the latest Java release. If at any time a release is made where the old sun-proprietary processing mechanism isn't supported, we'll make sure there's a new APT-Jelly engine available. Honestly, we'll probably provide something much sooner than that.
Thanks!
Great. If you want to close the issue that's fine. Or you can leave it open as a request to upgrade apt-jelly so that we can use javac instead of apt. :)