This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new ae6f9066ee Remove redundant `-XX:+IgnoreUnrecognizedVMOptions` (#10475)
ae6f9066ee is described below

commit ae6f9066eefd1043d3f389f74f05e3279680b65b
Author: Piotr Findeisen <[email protected]>
AuthorDate: Mon Jun 17 21:18:31 2024 +0200

    Remove redundant `-XX:+IgnoreUnrecognizedVMOptions` (#10475)
    
    The JVM flags are set depending on Java version.  We should not be
    setting any flags that are not expected to be supported.
---
 build.gradle | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/build.gradle b/build.gradle
index 213109852e..9b3c352705 100644
--- a/build.gradle
+++ b/build.gradle
@@ -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",

Reply via email to