jvz commented on code in PR #1964:
URL: https://github.com/apache/logging-log4j2/pull/1964#discussion_r1390309480


##########
log4j-core-test/pom.xml:
##########
@@ -379,6 +379,22 @@
           </annotationProcessorPaths>
         </configuration>
       </plugin>
+      <!--
+      
https://junit-pioneer.org/docs/environment-variables/#warnings-for-reflective-access
+      -->
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <configuration>
+          <argLine>
+            <!-- for environment variable access -->
+            --add-opens java.base/java.util=ALL-UNNAMED
+            --add-opens java.base/java.lang=ALL-UNNAMED
+            <!-- for URLStreamHandlerFactory access -->
+            --add-opens java.base/java.net=ALL-UNNAMED

Review Comment:
   We have some tests that try to modify internals of `URLStreamHandlerFactory` 
to test something related to handling `URL`s. Yet another sign we could use our 
own `Resource`-style API. :)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to