Skip to content

Commit

Permalink
Remove redundant -XX:+IgnoreUnrecognizedVMOptions (apache#10475)
Browse files Browse the repository at this point in the history
The JVM flags are set depending on Java version.  We should not be
setting any flags that are not expected to be supported.
  • Loading branch information
findepi authored Jun 17, 2024
1 parent 4859b55 commit ae6f906
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ if (JavaVersion.current() == JavaVersion.VERSION_1_8) {
project.ext.extraJvmArgs = []
} else if (JavaVersion.current() == JavaVersion.VERSION_17) {
project.ext.jdkVersion = '17'
project.ext.extraJvmArgs = ["-XX:+IgnoreUnrecognizedVMOptions",
"--add-opens", "java.base/java.io=ALL-UNNAMED",
project.ext.extraJvmArgs = ["--add-opens", "java.base/java.io=ALL-UNNAMED",
"--add-opens", "java.base/java.lang.invoke=ALL-UNNAMED",
"--add-opens", "java.base/java.lang.reflect=ALL-UNNAMED",
"--add-opens", "java.base/java.lang=ALL-UNNAMED",
Expand Down

0 comments on commit ae6f906

Please sign in to comment.