karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ff...@apache.org
Subject [karaf] branch jdk12 updated: [KARAF-6203]ensure karaf can build and run with JDK12-remove WARNING: Illegal reflective access
Date Thu, 21 Mar 2019 04:27:48 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/jdk12 by this push:
     new 6926ab9  [KARAF-6203]ensure karaf can build and run with JDK12-remove WARNING: Illegal
reflective access
6926ab9 is described below

commit 6926ab916d83603b5ef9a9952159d151f19719e5
Author: Freeman Fang <freeman.fang@gmail.com>
AuthorDate: Thu Mar 21 12:26:29 2019 +0800

    [KARAF-6203]ensure karaf can build and run with JDK12-remove WARNING: Illegal reflective
access
---
 .../features/base/src/main/filtered-resources/resources/bin/karaf       | 2 ++
 .../features/base/src/main/filtered-resources/resources/bin/karaf.bat   | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf b/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf
index 1ed6ad1..07f632e 100644
--- a/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf
+++ b/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf
@@ -310,6 +310,8 @@ run() {
                     --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED \
                     --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED \
                     --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED \
+                    --add-exports=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED \
+                    --add-exports=java.base/sun.net.www.protocol.file=ALL-UNNAMED \
                     --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED \
                     --add-exports=jdk.naming.rmi/com.sun.jndi.url.rmi=ALL-UNNAMED \
                     -Dkaraf.instances="${KARAF_HOME}/instances" \
diff --git a/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat
b/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat
index 037cd02..03c4f94 100644
--- a/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat
+++ b/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat
@@ -439,6 +439,8 @@ if "%KARAF_PROFILER%" == "" goto :RUN
                 --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED ^
                 --add-exports=java.base/sun.net.www.protocol.https=ALL-UNNAMED ^
                 --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED ^
+                --add-exports=java.base/sun.net.www.protocol.file=ALL-UNNAMED ^
+                --add-exports=java.base/sun.net.www.protocol.ftp=ALL-UNNAMED ^
                 --add-exports=jdk.xml.dom/org.w3c.dom.html=ALL-UNNAMED ^
                 --add-exports=jdk.naming.rmi/com.sun.jndi.url.rmi=ALL-UNNAMED ^
                 -classpath "%CLASSPATH%" ^


Mime
View raw message