Skip to content

Commit 6dcabea

Browse files
timis1timis1
and
timis1
authored
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 <[email protected]>
1 parent da96bb6 commit 6dcabea

File tree

14 files changed

+0
-73
lines changed

14 files changed

+0
-73
lines changed

checker-framework/pom.xml

-2
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@
5555
<arg>-Awarns</arg>
5656
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
5757
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
58-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
5958
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
60-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
6159
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
6260
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
6361
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>

java-panama/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
<source>${maven.compiler.source}</source>
2828
<target>${maven.compiler.target}</target>
2929
<compilerArgs>
30-
<arg>--add-opens=java.base/java.lang.foreign=ALL-UNNAMED</arg>
3130
<arg>--enable-preview</arg>
3231
</compilerArgs>
3332
</configuration>

libraries-bytecode/pom.xml

-8
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,7 @@
4949
<artifactId>maven-surefire-plugin</artifactId>
5050
<configuration>
5151
<argLine>
52-
--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED
53-
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED
54-
--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED
55-
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
56-
--add-opens=jdk.compiler/com.sun.tools.javac=ALL-UNNAMED
5752
--add-opens=java.base/java.lang=ALL-UNNAMED
58-
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
59-
--add-opens=java.base/java.io=ALL-UNNAMED
60-
--add-opens=java.base/java.util=ALL-UNNAMED
6153
</argLine>
6254
</configuration>
6355
</plugin>

libraries-data/pom.xml

-9
Original file line numberDiff line numberDiff line change
@@ -175,16 +175,7 @@
175175
<artifactId>maven-surefire-plugin</artifactId>
176176
<configuration>
177177
<argLine>
178-
--add-opens java.base/java.lang=ALL-UNNAMED
179-
--add-opens jdk.management/com.sun.management.internal=ALL-UNNAMED
180-
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED
181-
--add-opens java.base/sun.nio.ch=ALL-UNNAMED
182-
--add-opens java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED
183-
--add-opens jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
184-
--add-opens java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
185-
--add-opens java.base/java.io=ALL-UNNAMED
186178
--add-opens java.base/java.nio=ALL-UNNAMED
187-
--add-opens java.base/java.util=ALL-UNNAMED
188179
--add-opens java.base/java.lang=ALL-UNNAMED
189180
</argLine>
190181
</configuration>

libraries/pom.xml

-8
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,7 @@
205205
<artifactId>maven-surefire-plugin</artifactId>
206206
<configuration>
207207
<argLine>
208-
--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED
209-
--add-exports=java.base/sun.nio.ch=ALL-UNNAMED
210-
--add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED
211-
--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
212-
--add-opens=jdk.compiler/com.sun.tools.javac=ALL-UNNAMED
213208
--add-opens=java.base/java.lang=ALL-UNNAMED
214-
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED
215-
--add-opens=java.base/java.io=ALL-UNNAMED
216-
--add-opens=java.base/java.util=ALL-UNNAMED
217209
</argLine>
218210
</configuration>
219211
</plugin>

orika/pom.xml

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
<configuration>
3030
<argLine>
3131
--add-opens java.base/java.lang=ALL-UNNAMED
32-
--add-opens java.base/java.util=ALL-UNNAMED
3332
</argLine>
3433
</configuration>
3534
</plugin>

patterns-modules/axon/pom.xml

-7
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,6 @@
107107
<plugin>
108108
<groupId>org.apache.maven.plugins</groupId>
109109
<artifactId>maven-surefire-plugin</artifactId>
110-
<configuration>
111-
<argLine>
112-
--add-opens java.base/java.util=ALL-UNNAMED
113-
--add-opens
114-
java.base/java.util.concurrent=ALL-UNNAMED
115-
</argLine>
116-
</configuration>
117110
</plugin>
118111
</plugins>
119112
</build>

spring-aop-2/pom.xml

-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,6 @@
154154
<version>${maven-surefire-plugin.version}</version>
155155
<configuration>
156156
<argLine>
157-
--add-opens java.base/java.lang=ALL-UNNAMED
158-
--add-opens java.base/java.util=ALL-UNNAMED
159157
-javaagent:"${settings.localRepository}"/org/aspectj/aspectjweaver/${aspectjweaver.version}/aspectjweaver-${aspectjweaver.version}.jar
160158
-javaagent:"${settings.localRepository}"/org/springframework/spring-instrument/${spring.version}/spring-instrument-${spring.version}.jar
161159
</argLine>

spring-cloud-modules/spring-cloud-archaius/spring-cloud-archaius-extra-configs/pom.xml

-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@
4545
<configuration>
4646
<argLine>
4747
--add-opens java.base/java.lang=ALL-UNNAMED
48-
--add-opens java.base/java.util=ALL-UNNAMED
49-
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
5048
</argLine>
5149
</configuration>
5250
</plugin>

spring-cloud-modules/spring-cloud-zuul-eureka-integration/eureka-client/pom.xml

-4
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,6 @@
5454
<configuration>
5555
<argLine>
5656
--add-opens java.base/java.lang=ALL-UNNAMED
57-
--add-opens java.base/java.util=ALL-UNNAMED
58-
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
59-
--add-opens java.base/java.text=ALL-UNNAMED
60-
--add-opens java.desktop/java.awt.font=ALL-UNNAMED
6157
</argLine>
6258
</configuration>
6359
</plugin>

spring-web-modules/spring-mvc-crash/pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,6 @@
128128
<plugin>
129129
<groupId>org.apache.maven.plugins</groupId>
130130
<artifactId>maven-surefire-plugin</artifactId>
131-
<configuration>
132-
<argLine>
133-
--add-opens java.base/java.lang=ALL-UNNAMED
134-
</argLine>
135-
</configuration>
136131
</plugin>
137132
</plugins>
138133
</build>

spring-web-modules/spring-mvc-webflow/pom.xml

-5
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,6 @@
9393
<plugin>
9494
<groupId>org.apache.maven.plugins</groupId>
9595
<artifactId>maven-surefire-plugin</artifactId>
96-
<configuration>
97-
<argLine>
98-
--add-opens java.base/java.lang=ALL-UNNAMED
99-
</argLine>
100-
</configuration>
10196
</plugin>
10297
</plugins>
10398
</build>

static-analysis/error-prone-project/pom.xml

-10
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@
2222
<compilerArgs>
2323
<arg>-XDcompilePolicy=simple</arg>
2424
<arg>-Xplugin:ErrorProne</arg>
25-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED</arg>
26-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED</arg>
27-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED</arg>
28-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED</arg>
29-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</arg>
30-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED</arg>
31-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED</arg>
32-
<arg>-J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED</arg>
33-
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED</arg>
34-
<arg>-J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED</arg>
3525
</compilerArgs>
3626
<annotationProcessorPaths>
3727
<path>

testing-modules/rest-testing/pom.xml

-9
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,6 @@
8888
<plugin>
8989
<groupId>org.apache.maven.plugins</groupId>
9090
<artifactId>maven-surefire-plugin</artifactId>
91-
<configuration>
92-
<argLine>
93-
--add-opens java.xml/com.sun.org.apache.xerces.internal.jaxp=ALL-UNNAMED
94-
--add-opens java.base/java.util=ALL-UNNAMED
95-
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
96-
--add-opens java.base/java.text=ALL-UNNAMED
97-
--add-opens java.desktop/java.awt.font=ALL-UNNAMED
98-
</argLine>
99-
</configuration>
10091
</plugin>
10192
</plugins>
10293
</build>

0 commit comments

Comments
 (0)