You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by ff...@apache.org on 2019/01/03 00:44:05 UTC

[cxf] branch master updated: fork the compiler when using JDK9+ so that extra classpath can be taken into accout

This is an automated email from the ASF dual-hosted git repository.

ffang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git


The following commit(s) were added to refs/heads/master by this push:
     new 88b4bab  fork the compiler when using JDK9+ so that extra classpath can be taken into accout
88b4bab is described below

commit 88b4bab7c7570e3f90f7883581ae224c8321a9a2
Author: Freeman Fang <fr...@gmail.com>
AuthorDate: Thu Jan 3 08:43:37 2019 +0800

    fork the compiler when using JDK9+ so that extra classpath can be taken into accout
---
 .../java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java     | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/rt/frontend/simple/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java b/rt/frontend/simple/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
index e21d362..8648c32 100644
--- a/rt/frontend/simple/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
+++ b/rt/frontend/simple/src/main/java/org/apache/cxf/endpoint/dynamic/DynamicClientFactory.java
@@ -623,6 +623,9 @@ public class DynamicClientFactory {
     }
 
     protected boolean compileJavaSrc(String classPath, List<File> srcList, String dest) {
+        if (JavaUtils.isJava9Compatible()) {
+            System.setProperty("org.apache.cxf.common.util.Compiler-fork", "true");
+        }
         org.apache.cxf.common.util.Compiler javaCompiler
             = new org.apache.cxf.common.util.Compiler();