[
https://issues.apache.org/jira/browse/CASSANDRA-8241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14383933#comment-14383933
]
Robert Stupp commented on CASSANDRA-8241:
-----------------------------------------
Using Oracle's {{JavaCompiler}} API implementation requires installation of a
JDK (not a good option).
We can bundle the Eclipse thing (which btw also implements the {{JavaCompiler}}
API beside its native API.
I see three options for this one (preferably option 3):
# stick with javassist (effectively resolving this ticket as 'later')
# use ecj with its native API (stick with ecj)
# use ecj with {{JavaCompiler}} API (allows to use ecj and JDK)
> 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)