Repository: flex-falcon Updated Branches: refs/heads/IDEA-FLEX_JS_COMPILER 4d5fab885 -> 15b6dd076
Adding support for COMP C/JSC Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/15b6dd07 Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/15b6dd07 Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/15b6dd07 Branch: refs/heads/IDEA-FLEX_JS_COMPILER Commit: 15b6dd076c26a08c5572ae5625841b4c5888fc02 Parents: 4d5fab8 Author: Frédéric THOMAS <[email protected]> Authored: Thu May 28 12:45:19 2015 +0100 Committer: Frédéric THOMAS <[email protected]> Committed: Thu May 28 12:45:19 2015 +0100 ---------------------------------------------------------------------- flex-compiler-oem/src/flex2/tools/CompJSC.java | 14 ++------------ flex-compiler-oem/src/flex2/tools/MxmlJSC.java | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/15b6dd07/flex-compiler-oem/src/flex2/tools/CompJSC.java ---------------------------------------------------------------------- diff --git a/flex-compiler-oem/src/flex2/tools/CompJSC.java b/flex-compiler-oem/src/flex2/tools/CompJSC.java index 0491ba0..d291678 100644 --- a/flex-compiler-oem/src/flex2/tools/CompJSC.java +++ b/flex-compiler-oem/src/flex2/tools/CompJSC.java @@ -1,10 +1,6 @@ package flex2.tools; import org.apache.flex.compiler.clients.COMPJSC; -import org.apache.flex.compiler.clients.JSCompilerEntryPoint; -import org.apache.flex.compiler.driver.IBackend; - -import java.lang.reflect.InvocationTargetException; /** * @author: Frederic Thomas @@ -13,13 +9,7 @@ import java.lang.reflect.InvocationTargetException; */ public class CompJSC extends MxmlJSC { - private static Class<COMPJSC> COMPILER = COMPJSC.class; - - @Override - protected JSCompilerEntryPoint getCompilerInstance(IBackend backend) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException { - if (compiler == null) { - compiler = COMPILER.getDeclaredConstructor(IBackend.class).newInstance(backend); - } - return compiler; + static { + COMPILER = COMPJSC.class; } } http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/15b6dd07/flex-compiler-oem/src/flex2/tools/MxmlJSC.java ---------------------------------------------------------------------- diff --git a/flex-compiler-oem/src/flex2/tools/MxmlJSC.java b/flex-compiler-oem/src/flex2/tools/MxmlJSC.java index 5dc4557..f23dc2a 100644 --- a/flex-compiler-oem/src/flex2/tools/MxmlJSC.java +++ b/flex-compiler-oem/src/flex2/tools/MxmlJSC.java @@ -23,7 +23,7 @@ import java.util.Set; */ public class MxmlJSC implements ProblemQueryProvider { - private static Class<MXMLJSC> COMPILER = MXMLJSC.class; + protected static Class<? extends MXMLJSC> COMPILER = MXMLJSC.class; protected JSCompilerEntryPoint compiler;
