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
This commit is contained in:
Norman Maurer 2017-02-14 20:54:28 +01:00
parent c12908d608
commit 5728e0eb2c
4 changed files with 11 additions and 1 deletions

View File

@ -26,6 +26,11 @@
<artifactId>netty-handler</artifactId>
<packaging>jar</packaging>
<properties>
<!-- Needed for SelfSignedCertificate -->
<argLine.java9.extras>--add-exports java.base/sun.security.x509=ALL-UNNAMED</argLine.java9.extras>
</properties>
<name>Netty/Handler</name>
<dependencies>

View File

@ -72,8 +72,9 @@
<profile>
<id>java9</id>
<properties>
<argLine.java9.extras></argLine.java9.extras>
<!-- Export some stuff which is used during our tests -->
<argLine.java9>--add-modules java.xml.bind --add-exports java.base/sun.security.x509=ALL-UNNAMED</argLine.java9>
<argLine.java9>--add-modules java.xml.bind ${argLine.java9.extras}</argLine.java9>
<!-- Not use alpn agent as Java9 supports alpn out of the box -->
<argLine.alpnAgent />
<!-- This is needed as earlier ASM versions not support java9 -->

View File

@ -88,6 +88,8 @@
<properties>
<skipAutobahnTestsuite>false</skipAutobahnTestsuite>
<!-- Needed for SSL tests as these use the SelfSignedCertificate -->
<argLine.java9.extras>--add-exports java.base/sun.security.x509=ALL-UNNAMED</argLine.java9.extras>
</properties>
<profiles>

View File

@ -28,6 +28,8 @@
<properties>
<jni.compiler.args.ldflags>LDFLAGS=-Wl,--no-as-needed -lrt</jni.compiler.args.ldflags>
<!-- Needed by the native transport as we need the memoryAddress of the ByteBuffer -->
<argLine.java9.extras>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine.java9.extras>
</properties>
<dependencies>