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.
As for myself (for IFCX Wings, new version coming soon!) I'm sticking with Javadoc-style annotations for things that need to be preprocessed (an "@uses" annotation for Ivy/Maven dependencies in particular). Among other things, that makes it easy to have an API (and syntax) that works for many languages. Jim Charles Oliver Nutter wrote: > Ok, I've got a problem. In JRuby 1.1.3 we started using a compile-time > annotation processor to pre-generate a bunch of code. This has helped > startup time, since before we did this processing at runtime using Java > reflection classes, and just using those classes increased both memory > and startup time. > > But the problem is that in order to an offline annotation processing, we > need to use Sun-specific APIs for the "apt" tool, and need a reflection > API that doesn't cause/require the classes to be loaded, since the code > we're generating will depend on things that have not been compiled yet. > So we're using the com.sun.mirror classes for the annotation processor > and all the reflection. > > Obviously this means a build-time dependency on a Sun JDK, since > annotation processing has not yet been standardized. This complicates > folks on non-Sun JDKs keeping up with JRuby trunk, since they can't > build it. The dependency does not extend to runtime, however. > > So my questions: > > Is there a third-party annotation processing tool/library we could use > instead? > > - Charlie --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---