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:
parent
7f518cddb3
commit
6396cd17a2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue