Explicit sun.nio.ch export for Netty's NioEventLoopGroup on JDK 9

Issue: SPR-14645
This commit is contained in:
Juergen Hoeller
2016-09-16 18:44:10 +02:00
parent b60af42e23
commit 3772398700

View File

@@ -600,6 +600,11 @@ project("spring-messaging") {
testRuntime("com.sun.xml.bind:jaxb-core:${jaxbVersion}")
testRuntime("com.sun.xml.bind:jaxb-impl:${jaxbVersion}")
}
if (JavaVersion.current().java9Compatible) {
// Reactor2TcpClient's use of Netty requires access to sun.nio.ch.SelectorImpl
test.jvmArgs(["--add-exports", "java.base/sun.nio.ch=ALL-UNNAMED"])
}
}
project("spring-tx") {
@@ -787,6 +792,11 @@ project("spring-web") {
testRuntime("org.jboss.xnio:xnio-nio:${xnioVersion}")
testRuntime("org.jboss.logging:jboss-logging:3.3.0.Final")
}
if (JavaVersion.current().java9Compatible) {
// Netty4ClientHttpRequestFactory requires access to sun.nio.ch.SelectorImpl
test.jvmArgs(["--add-exports", "java.base/sun.nio.ch=ALL-UNNAMED"])
}
}
project("spring-web-reactive") {
@@ -827,6 +837,11 @@ project("spring-web-reactive") {
testRuntime("org.jboss.logging:jboss-logging:3.3.0.Final")
testRuntime("org.webjars:underscorejs:1.8.3")
}
if (JavaVersion.current().java9Compatible) {
// ReactorClientHttpConnector requires access to sun.nio.ch.SelectorImpl
test.jvmArgs(["--add-exports", "java.base/sun.nio.ch=ALL-UNNAMED"])
}
}
project("spring-orm") {
@@ -980,6 +995,11 @@ project("spring-websocket") {
testRuntime("org.jboss.xnio:xnio-nio:${xnioVersion}")
testRuntime("org.jboss.logging:jboss-logging:3.3.0.Final")
}
if (JavaVersion.current().java9Compatible) {
// Reactor2TcpClient's use of Netty requires access to sun.nio.ch.SelectorImpl
test.jvmArgs(["--add-exports", "java.base/sun.nio.ch=ALL-UNNAMED"])
}
}
project("spring-test") {