Charles Oliver Nutter wrote:

> Jim White wrote:
> 
>>Well, it probably isn't useful for JRuby, but Groovy had a similar 
>>problem but solved it by implementing Java 5 Annotations processing as 
>>part of it's compiler.  There is even an example by Danno Ferrin 
>>(Grape's "@grab" annotation) which hooks into an early compiler phase to 
>>pull in classpath dependencies.  I believe all this Groovy compiler and 
>>language extension stuff is being standardized (as far as Groovy is 
>>concerned that is) around the Groovy AST API.
> 
> I've considered doing the same, but the compiler I need to hook into is 
> javac, not JRuby's compiler. Groovy has a different situation because 
> they want to process annotations in Groovy code, not in Java code. I 
> need cross-JDK annotation processing of annotations in JRuby's Java 
> code, unfortunately.

Then perhaps using the Eclipse APT is the way to go:

http://www.eclipse.org/jdt/apt/

Although since javac, apt, and friends are in OpenJDK, that would 
probably be a better starting point:

http://www.iced-tea.org/wiki/IcePick

Jim


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to jvm-languages@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to