Details
Description
There is a desire to move away from the test framework's use of the ANT JavaCC compiler task for compiling the output of the source generation. JCI is one alternative. To use JCI, we'd need to use one of the implemented compilers, groovy, janino, or eclipse. Is the Eclipse compiler the one that would be preferred? (Interestingly, I don't obviously see a way with JCI to use the Sun Java javac compiler, but I've only looked at it for a couple minutes so far.
There are no public releases of JCI yet.
I haven't marked a "fix version" for this issue as I'm not sure when this work can successfully be targeted. But by creating an issue at least there's an area to track investigations, disucssion, and resolution.
It seams to me that JCI is not at a usefull state yet and so I would not use it yet. Instead I think we should call sun's javac contained in tools.jar ourself as done by various other java applications and described at:
http://www.javaworld.com/javatips/jw-javatip131.html
http://www.esus.com/docs/GetQuestionPage.jsp?uid=410
This would also have the advantage of also being able to call serialver to generate SUID for srcgen as this is also available in tools.jar. Having said that sun seams to intend to deprecate at least com.sun.javac.Main with java 6 and instead introduce javax.tools interfaces. Another drawback, even if a small one, would be that I expect this to only work with sun compiler but not others.