From 5728e0eb2cf0d2fe267d25c9f85a0a061dc7ab5f 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 225e56832c..2916283655 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 500c9e3fb3..d19c674fe5 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 61ccbe3008..eab1e48b84 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 909c0f34bb..2028c5d85a 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