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

jaikiran pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
     new 4ac74eaa4 skip testZip64ModeJar on Java 8 where java.util.zip.ZipFile 
fails for zip64
4ac74eaa4 is described below

commit 4ac74eaa4f3f8ad4264cade3a27f1d976d09bcd0
Author: Jaikiran Pai <[email protected]>
AuthorDate: Fri Aug 11 18:12:11 2023 +0530

    skip testZip64ModeJar on Java 8 where java.util.zip.ZipFile fails for zip64
---
 src/tests/junit/org/apache/tools/ant/taskdefs/JarTest.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/tests/junit/org/apache/tools/ant/taskdefs/JarTest.java 
b/src/tests/junit/org/apache/tools/ant/taskdefs/JarTest.java
index 737d3a275..ffe234f46 100644
--- a/src/tests/junit/org/apache/tools/ant/taskdefs/JarTest.java
+++ b/src/tests/junit/org/apache/tools/ant/taskdefs/JarTest.java
@@ -32,6 +32,7 @@ import org.apache.tools.ant.BuildException;
 import org.apache.tools.ant.BuildFileRule;
 import org.apache.tools.ant.FileUtilities;
 import org.apache.tools.ant.util.FileUtils;
+import org.apache.tools.ant.util.JavaEnvUtils;
 import org.apache.tools.ant.util.StreamUtils;
 import org.junit.Before;
 import org.junit.Rule;
@@ -462,6 +463,7 @@ public class JarTest {
      */
     @Test
     public void testZip64ModeJar() throws IOException {
+        assumeTrue("Skipping on Java version < 11", 
JavaEnvUtils.isAtLeastJavaVersion("11"));
         // invoke the target
         buildRule.executeTarget("testZip64ModeJar");
         final File zip64Modejar = new File(getOutputDir(), tempDir + 
"zip64mode.jar");

Reply via email to