Skip to content

Commit 66ecd0c

Browse files
yrodiereSanne
authored andcommitted
HHH-14371 Open java.base/java.security and java/base/java.lang to the unnamed module in tests
Weld needs this, in CDI tests. Signed-off-by: Yoann Rodière <yoann@hibernate.org>
1 parent 5b23a51 commit 66ecd0c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

hibernate-core/hibernate-core.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@ test {
264264
if ( gradle.ext.javaVersions.test.launcher.asInt() >= 9 ) {
265265
// See org.hibernate.boot.model.naming.NamingHelperTest.DefaultCharset.set
266266
jvmArgs( ['--add-opens', 'java.base/java.nio.charset=ALL-UNNAMED'] )
267+
// Weld needs this to generate proxies
268+
jvmArgs( ['--add-opens', 'java.base/java.security=ALL-UNNAMED'] )
269+
jvmArgs( ['--add-opens', 'java.base/java.lang=ALL-UNNAMED'] )
267270
}
268271

269272
beforeTest { descriptor ->

0 commit comments

Comments
 (0)