Browse Source

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

Issue: SPR-14645
pull/1174/merge
Juergen Hoeller 9 years ago
parent
commit
3772398700
  1. 20
      build.gradle

20
build.gradle

@ -600,6 +600,11 @@ project("spring-messaging") { @@ -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") { @@ -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") { @@ -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") { @@ -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") {

Loading…
Cancel
Save