[ https://issues.apache.org/jira/browse/CASSANDRA-8241?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Stupp updated CASSANDRA-8241: ------------------------------------ Attachment: 8241-ecj.txt Patch that uses Eclipse compiler ([ecj-4.4.jar|http://search.maven.org/#artifactdetails%7Corg.eclipse.jdt.core.compiler%7Cecj%7C4.4%7Cjar]). Also in my [git branch|https://github.com/snazy/cassandra/tree/8241-udf-ecj] for this ticket. Eclipse compiler is pretty fast for our use case. Code is basically copied from Tomcat and adopted for UDF needs and some code re-formatting. > Use javac instead of javassist > ------------------------------ > > Key: CASSANDRA-8241 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8241 > Project: Cassandra > Issue Type: Improvement > Components: Core > Reporter: Robert Stupp > Assignee: Robert Stupp > Labels: udf > Fix For: 3.0 > > Attachments: 8241-ecj.txt, udf-java-javac.txt > > > Using JDK's built-in Java-Compiler API has some advantages over javassist. > Although compilation feels a bit slower, Java compiler API has some > advantages: > * boxing + unboxing works > * generics work > * compiler error messages are better (or at least known) and have line/column > numbers > The implementation does not use any temp files. Everything's in memory. > Patch attached to this issue. -- This message was sent by Atlassian JIRA (v6.3.4#6332)