Skip to content

Commit 14c3703

Browse files
authored
Merge pull request #30628 from gjwatts/remove-sun-security-action-from-tool-java-24
Remove add exports for sun.security.action from our tool script template
2 parents ba175ed + 020eaca commit 14c3703

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/cnf/resources/bin/tool

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ fi
285285

286286
# If this is a Java 9 JDK, add some JDK 9 workarounds to the JVM_ARGS
287287
if [ -f "${JPMS_MODULE_FILE_LOCATION}" ]; then
288-
JVM_ARGS="--add-opens java.base/java.lang=ALL-UNNAMED --add-exports java.base/sun.security.action=ALL-UNNAMED ${JVM_ARGS}"
288+
JVM_ARGS="--add-opens java.base/java.lang=ALL-UNNAMED ${JVM_ARGS}"
289289
fi
290290

291291
# Prevent the Java invocation appearing as an application on a mac

dev/cnf/resources/bin/tool.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ if NOT defined JAVA_HOME (
5454
)
5555

5656
@REM If this is a Java 9 JDK, add some JDK 9 workarounds to the JVM_ARGS
57-
if exist "%JAVA_HOME%\lib\modules" set JVM_ARGS=--add-opens java.base/java.lang=ALL-UNNAMED --add-exports java.base/sun.security.action=ALL-UNNAMED !JVM_ARGS!
57+
if exist "%JAVA_HOME%\lib\modules" set JVM_ARGS=--add-opens java.base/java.lang=ALL-UNNAMED !JVM_ARGS!
5858

5959
set JVM_ARGS=-Djava.awt.headless=true !JVM_ARGS!
6060
set TOOL_JAVA_CMD_QUOTED=!JAVA_CMD_QUOTED! !JVM_ARGS! -jar "!WLP_INSTALL_DIR!\bin\@TOOL_JAR@"

0 commit comments

Comments
 (0)