From: =?utf-8?b?SsOpcsO0bWUgQ2hhcmFvdWk=?= <jerome@riseup.net>
Date: Wed, 16 Nov 2022 08:32:17 -0500
Subject: Fix jruby-base java testsuite failures

These two extra --add-opens arguments appear required to successfully
run the jruby-base testsuite, otherwise many errors are generated
seemingly because java is unable to access the filesystem.

Forwarded: not-needed
---
 core/pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/pom.xml b/core/pom.xml
index 4dbc341..42209eb 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -559,7 +559,7 @@ DO NOT MODIFY - GENERATED CODE
           </systemProperties>
           <argLine>-Xmx${jruby.test.memory} -Dfile.encoding=UTF-8 -Djava.awt.headless=true</argLine>
           <environmentVariables>
-            <JDK_JAVA_OPTIONS>--add-modules java.scripting</JDK_JAVA_OPTIONS>
+            <JDK_JAVA_OPTIONS>--add-modules java.scripting --add-opens java.base/sun.nio.ch=ALL-UNNAMED --add-opens java.base/java.io=ALL-UNNAMED</JDK_JAVA_OPTIONS>
           </environmentVariables>
           <includes>
             <include>org/jruby/test/**/*Test*.java</include>
