From 13b4aba5550fab38273192343fc7079b0171889d Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 14 Feb 2017 20:54:28 +0100 Subject: [PATCH] Use the correct arguments when run with jdk9 Motivation: We need to pass special arguments to run with jdk9 as otherwise some tests will not be able to run. Modifications: Allow to define extra arguments when running with jdk9 Result: Tests pass with jdk9 --- handler/pom.xml | 5 +++++ pom.xml | 3 ++- testsuite/pom.xml | 2 ++ transport-native-epoll/pom.xml | 2 ++ 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/handler/pom.xml b/handler/pom.xml index 7156bebdde..b6ed33b3f4 100644 --- a/handler/pom.xml +++ b/handler/pom.xml @@ -26,6 +26,11 @@ netty-handler jar + + + --add-exports java.base/sun.security.x509=ALL-UNNAMED + + Netty/Handler diff --git a/pom.xml b/pom.xml index 337b9f412e..fc8e51c79d 100644 --- a/pom.xml +++ b/pom.xml @@ -72,8 +72,9 @@ java9 + - --add-modules java.xml.bind --add-exports java.base/sun.security.x509=ALL-UNNAMED + --add-modules java.xml.bind ${argLine.java9.extras} diff --git a/testsuite/pom.xml b/testsuite/pom.xml index 30fe8425e2..b063abb381 100644 --- a/testsuite/pom.xml +++ b/testsuite/pom.xml @@ -88,6 +88,8 @@ false + + --add-exports java.base/sun.security.x509=ALL-UNNAMED diff --git a/transport-native-epoll/pom.xml b/transport-native-epoll/pom.xml index d44d554c7a..64d9069b67 100644 --- a/transport-native-epoll/pom.xml +++ b/transport-native-epoll/pom.xml @@ -28,6 +28,8 @@ LDFLAGS=-Wl,--no-as-needed -lrt + + --add-opens=java.base/java.nio=ALL-UNNAMED