This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new a9050192af Test requires Java 21
a9050192af is described below
commit a9050192af380cb9ac85d55d230ed2a3a377fc1c
Author: remm <[email protected]>
AuthorDate: Wed Oct 7 10:06:47 2026 +0200
Test requires Java 21
---
test/org/apache/catalina/core/TestStandardVirtualThreadExecutor.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/test/org/apache/catalina/core/TestStandardVirtualThreadExecutor.java
b/test/org/apache/catalina/core/TestStandardVirtualThreadExecutor.java
index 746e5e8cb5..8e55747835 100644
--- a/test/org/apache/catalina/core/TestStandardVirtualThreadExecutor.java
+++ b/test/org/apache/catalina/core/TestStandardVirtualThreadExecutor.java
@@ -19,12 +19,16 @@ package org.apache.catalina.core;
import java.util.concurrent.TimeUnit;
import org.junit.Assert;
+import org.junit.Assume;
import org.junit.Test;
+import org.apache.tomcat.util.compat.JreCompat;
+
public class TestStandardVirtualThreadExecutor {
@Test
public void testVirtualThreadExecutorAwaitTerminationNotStarted() throws
Exception {
+ Assume.assumeTrue(JreCompat.isJre21Available());
@SuppressWarnings("resource") // never started
StandardVirtualThreadExecutor executor = new
StandardVirtualThreadExecutor();
try {
@@ -38,6 +42,7 @@ public class TestStandardVirtualThreadExecutor {
@Test
public void testVirtualThreadExecutorAwaitTerminationDelegates() throws
Exception {
+ Assume.assumeTrue(JreCompat.isJre21Available());
@SuppressWarnings("resource") // stop() is called
StandardVirtualThreadExecutor executor = new
StandardVirtualThreadExecutor();
executor.start();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]