This is an automated email from the ASF dual-hosted git repository.

ppkarwasz pushed a commit to branch drop-mina-netty-from-core
in repository https://gitbox.apache.org/repos/asf/logging-flume.git

commit 4f9dd92b7047473a4f955d6a4e76f61bf54c639c
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Fri Jun 12 07:30:14 2026 +0200

    Open java.base packages for flume-ng-sdk SSLUtil tests
    
    AbstractSSLUtilTest injects environment variables by reflecting into
    java.lang.ProcessEnvironment, which fails with an
    InaccessibleObjectException on Java 16+ unless the relevant java.base
    packages are opened. Add the required --add-opens to the flume-ng-sdk
    surefire argLine. This is a pre-existing failure, unrelated to the
    Mina/Netty removal.
    
    Assisted-By: Claude Opus 4.8 <[email protected]>
---
 flume-ng-sdk/pom.xml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/flume-ng-sdk/pom.xml b/flume-ng-sdk/pom.xml
index eaaf42b6b..8ddc7e3c5 100644
--- a/flume-ng-sdk/pom.xml
+++ b/flume-ng-sdk/pom.xml
@@ -106,6 +106,18 @@
         </executions>
       </plugin>
 
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <!-- AbstractSSLUtilTest injects environment variables by reflecting 
into JDK internals,
+               which requires these opens on Java 16+. -->
+          <argLine>-Djava.net.preferIPv4Stack=true
+            --add-opens java.base/java.lang=ALL-UNNAMED
+            --add-opens java.base/java.util=ALL-UNNAMED</argLine>
+        </configuration>
+      </plugin>
+
     </plugins>
   </build>
 </project>

Reply via email to