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

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


The following commit(s) were added to refs/heads/master by this push:
     new 2fdf6f6  [KARAF-5448] Fix java 9 warning for TCPEndpoint access
2fdf6f6 is described below

commit 2fdf6f60638411c7ec6755cf66d4c8a3e79bea5d
Author: Guillaume Nodet <gno...@gmail.com>
AuthorDate: Wed Feb 14 10:28:55 2018 +0100

    [KARAF-5448] Fix java 9 warning for TCPEndpoint access
---
 assemblies/features/base/src/main/filtered-resources/resources/bin/karaf | 1 +
 .../features/base/src/main/filtered-resources/resources/bin/karaf.bat    | 1 +
 .../org/apache/karaf/instance/core/internal/InstanceServiceImpl.java     | 1 +
 pom.xml                                                                  | 1 +
 4 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 674b8d0..c8e4c27 100644
--- a/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf
+++ b/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf
@@ -272,6 +272,7 @@ run() {
                     --add-opens java.base/java.net=ALL-UNNAMED \
                     --add-opens java.base/java.lang=ALL-UNNAMED \
                     --add-opens java.base/java.util=ALL-UNNAMED \
+                    --add-opens java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED \
                     
--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 \
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 7567c77..19e1ad0 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
@@ -394,6 +394,7 @@ if "%KARAF_PROFILER%" == "" goto :RUN
                 --add-opens java.base/java.net=ALL-UNNAMED ^
                 --add-opens java.base/java.lang=ALL-UNNAMED ^
                 --add-opens java.base/java.util=ALL-UNNAMED ^
+                --add-opens java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED ^
                 --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 ^
diff --git 
a/instance/src/main/java/org/apache/karaf/instance/core/internal/InstanceServiceImpl.java
 
b/instance/src/main/java/org/apache/karaf/instance/core/internal/InstanceServiceImpl.java
index e386595..b2b8832 100644
--- 
a/instance/src/main/java/org/apache/karaf/instance/core/internal/InstanceServiceImpl.java
+++ 
b/instance/src/main/java/org/apache/karaf/instance/core/internal/InstanceServiceImpl.java
@@ -494,6 +494,7 @@ public class InstanceServiceImpl implements InstanceService 
{
                       " --add-opens java.base/java.net=ALL-UNNAMED" +
                       " --add-opens java.base/java.lang=ALL-UNNAMED" +
                       " --add-opens java.base/java.util=ALL-UNNAMED" +
+                      " --add-opens 
java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED" +
                       " 
--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" +
diff --git a/pom.xml b/pom.xml
index 0c26d28..3301fd7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2347,6 +2347,7 @@
                                   --add-opens java.base/java.net=ALL-UNNAMED 
                                   --add-opens java.base/java.lang=ALL-UNNAMED
                                   --add-opens java.base/java.util=ALL-UNNAMED
+                                  --add-opens 
java.rmi/sun.rmi.transport.tcp=ALL-UNNAMED
                                   --add-modules 
java.activation,java.xml.ws.annotation,java.corba,java.transaction,java.xml.bind,java.xml.ws</surefire.argLine>
             </properties>
             <activation>

-- 
To stop receiving notification emails like this one, please contact
gno...@apache.org.

Reply via email to