Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-8241

Use ecj [was: javac] instead of javassist

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.0 rc1
    • None

    Description

      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.

      Attachments

        1. udf-java-javac.txt
          39 kB
          Robert Stupp
        2. 8241-ecj.txt
          62 kB
          Robert Stupp
        3. 8241-ecj-v2.txt
          76 kB
          Robert Stupp

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            snazy Robert Stupp Assign to me
            snazy Robert Stupp
            Robert Stupp
            Carl Yeksigian
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment