HHH-14371 Open java.base/java.lang to the unnamed module in javassist tests

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
This commit is contained in:
Yoann Rodière 2020-12-14 12:17:59 +01:00 committed by Sanne Grinovero
parent 7f518cddb3
commit 6396cd17a2
1 changed files with 5 additions and 0 deletions

View File

@ -276,6 +276,11 @@ task testJavassist(type: Test) {
logger.lifecycle "Testing javassist with '${javaLauncher.get().metadata.installationPath}'"
}
}
if ( gradle.ext.javaVersions.test.launcher.asInt() >= 9 ) {
// Javassist needs this to generate proxies
jvmArgs( ['--add-opens', 'java.base/java.lang=ALL-UNNAMED'] )
}
}
check.dependsOn testJavassist