Skip to content

Commit

Permalink
HHH-14371 Open java.base/java.lang to the unnamed module in Proxool t…
Browse files Browse the repository at this point in the history
…ests

Signed-off-by: Yoann Rodière <yoann@hibernate.org>
  • Loading branch information
yrodiere authored and Sanne committed Aug 20, 2021
1 parent 3addca2 commit de9a456
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions hibernate-proxool/hibernate-proxool.gradle
Expand Up @@ -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'] )
}
}

0 comments on commit de9a456

Please sign in to comment.