karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject [karaf] branch master updated: [KARAF-5448] Fix java 9 warning for aries jndi activator
Date Wed, 14 Feb 2018 10:57:46 GMT
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 7ecc4d1  [KARAF-5448] Fix java 9 warning for aries jndi activator
7ecc4d1 is described below

commit 7ecc4d1525b6c76a0f186f5160472e55f9d9b730
Author: Guillaume Nodet <gnodet@gmail.com>
AuthorDate: Wed Feb 14 10:49:56 2018 +0100

    [KARAF-5448] Fix java 9 warning for aries jndi activator
---
 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 c8e4c27..aba7322 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.naming/javax.naming.spi=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 \
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 19e1ad0..cb0f0d9 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.naming/javax.naming.spi=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 ^
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 b2b8832..b7f9101 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.naming/javax.naming.spi=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" +
diff --git a/pom.xml b/pom.xml
index 3301fd7..b2e9499 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.naming/javax.naming.spi=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>

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

Mime
View raw message