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

markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new ddfb0b21b5 Disable test that will fail on Java 8 due to JDK issue
ddfb0b21b5 is described below

commit ddfb0b21b5a9d78becafea6dea03d7204855dc6c
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Feb 2 22:40:14 2026 +0000

    Disable test that will fail on Java 8 due to JDK issue
---
 .../org/apache/catalina/startup/TestStartupIPv6Connectors.java | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/test/org/apache/catalina/startup/TestStartupIPv6Connectors.java 
b/test/org/apache/catalina/startup/TestStartupIPv6Connectors.java
index 33305e88b3..593b314053 100644
--- a/test/org/apache/catalina/startup/TestStartupIPv6Connectors.java
+++ b/test/org/apache/catalina/startup/TestStartupIPv6Connectors.java
@@ -34,6 +34,7 @@ import org.junit.BeforeClass;
 import org.junit.Test;
 
 import org.apache.catalina.Context;
+import org.apache.tomcat.util.compat.JreCompat;
 
 public class TestStartupIPv6Connectors extends TomcatBaseTest {
 
@@ -122,6 +123,14 @@ public class TestStartupIPv6Connectors extends 
TomcatBaseTest {
     }
 
     private void assertHttpOkOnAddress(String address) throws Exception {
+        /*
+         * Test fails on Java 8 due to this bug:
+         * https://bugs.openjdk.org/browse/JDK-8027308
+         *
+         * Needs this fix back-porting to Java 8 to address this issue:
+         * 
https://github.com/openjdk/jdk11u/commit/66135672e1fb2290834277d9c359478fff4ddd12
+         */
+        Assume.assumeTrue(JreCompat.isJre11Available());
         Tomcat tomcat = getTomcatInstance();
         tomcat.getConnector().setProperty("address", address);
         File baseDir = new File(getTemporaryDirectory(), "ipv6");
@@ -138,6 +147,7 @@ public class TestStartupIPv6Connectors extends 
TomcatBaseTest {
             Assume.assumeNoException("Can't bind to " + address, e);
         }
         if (address.contains(":")) {
+            // Java 8 doesn't handle
             address = "[" + address + "]";
         }
         URL url = new URI("http://"; + address + ":" + getPort() + "/").toURL();


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to