Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8323

Use the JDK-provided JavaCompiler API instead of the Eclipse one

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Commons Compiler 2.3.8
    • Component/s: Commons
    • Labels:
      None

      Description

      Using the Eclipse compiler API works fine, with two minor caveats:

      • the dependency must be upgraded periodically to get support for newer Java versions
      • we need to embed ecj (~2.7M)

      Since Java 7 the JavaCompiler API allows programmatic access to the system java compiler. We should instead try and use this compiler.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rombert Robert Munteanu
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: