Robert Munteanu created SLING-8323:
--------------------------------------

             Summary: Use the JDK-provided JavaCompiler API instead of the 
Eclipse one
                 Key: SLING-8323
                 URL: https://issues.apache.org/jira/browse/SLING-8323
             Project: Sling
          Issue Type: Improvement
          Components: Commons
            Reporter: Robert Munteanu
             Fix For: Commons Compiler 2.3.8


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|https://docs.oracle.com/javase/7/docs/api/javax/tools/JavaCompiler.html]
 API allows programmatic access to the system java compiler. We should instead 
try and use this compiler.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to