Menu

#7 Support Java6's javax.lang.model?

open
nobody
None
5
2009-03-30
2009-03-29
Adam Brod
No

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

Discussion

  • Ryan Heaton

    Ryan Heaton - 2009-03-30

    We use apt-jelly all the time in Java 6. What makes you think it wouldn't work?

     
  • Adam Brod

    Adam Brod - 2009-03-30

    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

     
  • Ryan Heaton

    Ryan Heaton - 2009-03-30

    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!

     
  • Adam Brod

    Adam Brod - 2009-03-30

    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. :)

     
  • Adam Brod

    Adam Brod - 2009-03-30
    • summary: Support Java6's java.model? --> Support Java6's javax.lang.model?
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.