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

rainerjung 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 dcdcd1306f Skip TestStandardJarScanner manifest tests on Java 8
dcdcd1306f is described below

commit dcdcd1306f6dae42927bdd2983700b0a908c96ab
Author: Rainer Jung <[email protected]>
AuthorDate: Sun May 3 12:50:26 2026 +0200

    Skip TestStandardJarScanner manifest tests on Java 8
---
 test/org/apache/tomcat/util/scan/TestStandardJarScanner.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/org/apache/tomcat/util/scan/TestStandardJarScanner.java 
b/test/org/apache/tomcat/util/scan/TestStandardJarScanner.java
index 108602490d..18898b8d0d 100644
--- a/test/org/apache/tomcat/util/scan/TestStandardJarScanner.java
+++ b/test/org/apache/tomcat/util/scan/TestStandardJarScanner.java
@@ -110,12 +110,14 @@ public class TestStandardJarScanner {
 
     @Test
     public void testScanManifestDefault() throws Exception {
+        Assume.assumeTrue("No StandardJarScanner.addClassPath() below Java 9", 
JreCompat.isJre9Available());
         Assert.assertTrue("Referenced JAR from manifest Class-Path should be 
scanned",
                 doTestScanManifest(true));
     }
 
     @Test
     public void testScanManifestDisabled() throws Exception {
+        Assume.assumeTrue("No StandardJarScanner.addClassPath() below Java 9", 
JreCompat.isJre9Available());
         Assert.assertFalse("Referenced JAR from manifest Class-Path should not 
be scanned",
                 doTestScanManifest(false));
     }


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

Reply via email to