From 6dcabea12b906d53fd1f0c2a9ff0434662eefb81 Mon Sep 17 00:00:00 2001 From: timis1 <12120641+timis1@users.noreply.github.com> Date: Mon, 4 Mar 2024 23:44:58 +0200 Subject: [PATCH] JAVA-31430 Review add-opens and add-exports in modules - Week 9 - 2024 (#16008) * JAVA-31430 Review add-opens and add-exports in modules - Week 9 - 2024 * JAVA-31430 Some fixes --------- Co-authored-by: timis1 --- checker-framework/pom.xml | 2 -- java-panama/pom.xml | 1 - libraries-bytecode/pom.xml | 8 -------- libraries-data/pom.xml | 9 --------- libraries/pom.xml | 8 -------- orika/pom.xml | 1 - patterns-modules/axon/pom.xml | 7 ------- spring-aop-2/pom.xml | 2 -- .../spring-cloud-archaius-extra-configs/pom.xml | 2 -- .../eureka-client/pom.xml | 4 ---- spring-web-modules/spring-mvc-crash/pom.xml | 5 ----- spring-web-modules/spring-mvc-webflow/pom.xml | 5 ----- static-analysis/error-prone-project/pom.xml | 10 ---------- testing-modules/rest-testing/pom.xml | 9 --------- 14 files changed, 73 deletions(-) diff --git a/checker-framework/pom.xml b/checker-framework/pom.xml index 068c543af0..dd3a9fd28b 100644 --- a/checker-framework/pom.xml +++ b/checker-framework/pom.xml @@ -55,9 +55,7 @@ -Awarns -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED diff --git a/java-panama/pom.xml b/java-panama/pom.xml index d89b1ff1af..61c8f2c5be 100644 --- a/java-panama/pom.xml +++ b/java-panama/pom.xml @@ -27,7 +27,6 @@ ${maven.compiler.source} ${maven.compiler.target} - --add-opens=java.base/java.lang.foreign=ALL-UNNAMED --enable-preview diff --git a/libraries-bytecode/pom.xml b/libraries-bytecode/pom.xml index 5aa681b9a9..7c8b7ffe66 100644 --- a/libraries-bytecode/pom.xml +++ b/libraries-bytecode/pom.xml @@ -49,15 +49,7 @@ maven-surefire-plugin - --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED - --add-exports=java.base/sun.nio.ch=ALL-UNNAMED - --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED - --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED - --add-opens=jdk.compiler/com.sun.tools.javac=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED - --add-opens=java.base/java.lang.reflect=ALL-UNNAMED - --add-opens=java.base/java.io=ALL-UNNAMED - --add-opens=java.base/java.util=ALL-UNNAMED diff --git a/libraries-data/pom.xml b/libraries-data/pom.xml index bab544e203..885fe412ca 100644 --- a/libraries-data/pom.xml +++ b/libraries-data/pom.xml @@ -175,16 +175,7 @@ maven-surefire-plugin - --add-opens java.base/java.lang=ALL-UNNAMED - --add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED - --add-opens java.base/jdk.internal.misc=ALL-UNNAMED - --add-opens java.base/sun.nio.ch=ALL-UNNAMED - --add-opens java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED - --add-opens jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED - --add-opens java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED - --add-opens java.base/java.io=ALL-UNNAMED --add-opens java.base/java.nio=ALL-UNNAMED - --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED diff --git a/libraries/pom.xml b/libraries/pom.xml index 4a0adc1135..d16f710cff 100644 --- a/libraries/pom.xml +++ b/libraries/pom.xml @@ -205,15 +205,7 @@ maven-surefire-plugin - --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED - --add-exports=java.base/sun.nio.ch=ALL-UNNAMED - --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED - --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED - --add-opens=jdk.compiler/com.sun.tools.javac=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED - --add-opens=java.base/java.lang.reflect=ALL-UNNAMED - --add-opens=java.base/java.io=ALL-UNNAMED - --add-opens=java.base/java.util=ALL-UNNAMED diff --git a/orika/pom.xml b/orika/pom.xml index 5ff898e6bd..b6b1e96082 100644 --- a/orika/pom.xml +++ b/orika/pom.xml @@ -29,7 +29,6 @@ --add-opens java.base/java.lang=ALL-UNNAMED - --add-opens java.base/java.util=ALL-UNNAMED diff --git a/patterns-modules/axon/pom.xml b/patterns-modules/axon/pom.xml index bdf1bf2e41..9d184f49a9 100644 --- a/patterns-modules/axon/pom.xml +++ b/patterns-modules/axon/pom.xml @@ -107,13 +107,6 @@ org.apache.maven.plugins maven-surefire-plugin - - - --add-opens java.base/java.util=ALL-UNNAMED - --add-opens - java.base/java.util.concurrent=ALL-UNNAMED - - diff --git a/spring-aop-2/pom.xml b/spring-aop-2/pom.xml index e17d2c7639..3a60739315 100644 --- a/spring-aop-2/pom.xml +++ b/spring-aop-2/pom.xml @@ -154,8 +154,6 @@ ${maven-surefire-plugin.version} - --add-opens java.base/java.lang=ALL-UNNAMED - --add-opens java.base/java.util=ALL-UNNAMED -javaagent:"${settings.localRepository}"/org/aspectj/aspectjweaver/${aspectjweaver.version}/aspectjweaver-${aspectjweaver.version}.jar -javaagent:"${settings.localRepository}"/org/springframework/spring-instrument/${spring.version}/spring-instrument-${spring.version}.jar diff --git a/spring-cloud-modules/spring-cloud-archaius/spring-cloud-archaius-extra-configs/pom.xml b/spring-cloud-modules/spring-cloud-archaius/spring-cloud-archaius-extra-configs/pom.xml index 383ad6a780..a3ac55c6ca 100644 --- a/spring-cloud-modules/spring-cloud-archaius/spring-cloud-archaius-extra-configs/pom.xml +++ b/spring-cloud-modules/spring-cloud-archaius/spring-cloud-archaius-extra-configs/pom.xml @@ -45,8 +45,6 @@ --add-opens java.base/java.lang=ALL-UNNAMED - --add-opens java.base/java.util=ALL-UNNAMED - --add-opens java.base/java.lang.reflect=ALL-UNNAMED diff --git a/spring-cloud-modules/spring-cloud-zuul-eureka-integration/eureka-client/pom.xml b/spring-cloud-modules/spring-cloud-zuul-eureka-integration/eureka-client/pom.xml index d4e1567933..952b7867de 100644 --- a/spring-cloud-modules/spring-cloud-zuul-eureka-integration/eureka-client/pom.xml +++ b/spring-cloud-modules/spring-cloud-zuul-eureka-integration/eureka-client/pom.xml @@ -54,10 +54,6 @@ --add-opens java.base/java.lang=ALL-UNNAMED - --add-opens java.base/java.util=ALL-UNNAMED - --add-opens java.base/java.lang.reflect=ALL-UNNAMED - --add-opens java.base/java.text=ALL-UNNAMED - --add-opens java.desktop/java.awt.font=ALL-UNNAMED diff --git a/spring-web-modules/spring-mvc-crash/pom.xml b/spring-web-modules/spring-mvc-crash/pom.xml index 9bfcfb488e..b719f965e8 100644 --- a/spring-web-modules/spring-mvc-crash/pom.xml +++ b/spring-web-modules/spring-mvc-crash/pom.xml @@ -128,11 +128,6 @@ org.apache.maven.plugins maven-surefire-plugin - - - --add-opens java.base/java.lang=ALL-UNNAMED - - diff --git a/spring-web-modules/spring-mvc-webflow/pom.xml b/spring-web-modules/spring-mvc-webflow/pom.xml index 252313b702..ee7af2ecf3 100644 --- a/spring-web-modules/spring-mvc-webflow/pom.xml +++ b/spring-web-modules/spring-mvc-webflow/pom.xml @@ -93,11 +93,6 @@ org.apache.maven.plugins maven-surefire-plugin - - - --add-opens java.base/java.lang=ALL-UNNAMED - - diff --git a/static-analysis/error-prone-project/pom.xml b/static-analysis/error-prone-project/pom.xml index 6747a3d3ed..9aad4341b9 100644 --- a/static-analysis/error-prone-project/pom.xml +++ b/static-analysis/error-prone-project/pom.xml @@ -22,16 +22,6 @@ -XDcompilePolicy=simple -Xplugin:ErrorProne - -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED - -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED - -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED diff --git a/testing-modules/rest-testing/pom.xml b/testing-modules/rest-testing/pom.xml index b9790287a3..3b30f50e66 100644 --- a/testing-modules/rest-testing/pom.xml +++ b/testing-modules/rest-testing/pom.xml @@ -88,15 +88,6 @@ org.apache.maven.plugins maven-surefire-plugin - - - --add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED - --add-opens java.base/java.util=ALL-UNNAMED - --add-opens java.base/java.lang.reflect=ALL-UNNAMED - --add-opens java.base/java.text=ALL-UNNAMED - --add-opens java.desktop/java.awt.font=ALL-UNNAMED - -