You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Robert Munteanu (JIRA)" <ji...@apache.org> on 2019/03/20 13:23:00 UTC
[jira] [Created] (SLING-8323) Use the JDK-provided JavaCompiler API
instead of the Eclipse one
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)