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

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
This commit is contained in:
Yoann Rodière 2020-12-14 14:39:24 +01:00 committed by Sanne Grinovero
parent 1acb6fea52
commit 552ff9b4af
1 changed files with 12 additions and 0 deletions

View File

@ -15,3 +15,15 @@ dependencies {
compile( libraries.proxool )
testCompile project( ':hibernate-testing' )
}
test {
if ( gradle.ext.javaVersions.test.launcher.asInt() >= 9 ) {
// Proxool needs this to define classes for some reason. Stack trace:
// at org.logicalcobwebs.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:372)
// at org.logicalcobwebs.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:193)
// at org.logicalcobwebs.cglib.core.KeyFactory$Generator.create(KeyFactory.java:177)
// at org.logicalcobwebs.cglib.core.KeyFactory.create(KeyFactory.java:149)
// at org.logicalcobwebs.cglib.proxy.Enhancer.<clinit>(Enhancer.java:96)
jvmArgs( ['--add-opens', 'java.base/java.lang=ALL-UNNAMED'] )
}
}