This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new cc488eafa2 The test requires Java 21
cc488eafa2 is described below
commit cc488eafa2b48cf384f3a39912f5911cece9bcee
Author: remm <[email protected]>
AuthorDate: Wed Oct 7 09:57:59 2026 +0200
The test requires Java 21
Pre rename/split of the test, it did not appear to be using virtual
threads.
---
test/org/apache/catalina/core/TestStandardVirtualThreadExecutor.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git
a/test/org/apache/catalina/core/TestStandardVirtualThreadExecutor.java
b/test/org/apache/catalina/core/TestStandardVirtualThreadExecutor.java
index 746e5e8cb5..5d38bfbbd2 100644
--- a/test/org/apache/catalina/core/TestStandardVirtualThreadExecutor.java
+++ b/test/org/apache/catalina/core/TestStandardVirtualThreadExecutor.java
@@ -18,13 +18,16 @@ package org.apache.catalina.core;
import java.util.concurrent.TimeUnit;
+import org.apache.tomcat.util.compat.JreCompat;
import org.junit.Assert;
+import org.junit.Assume;
import org.junit.Test;
public class TestStandardVirtualThreadExecutor {
@Test
public void testVirtualThreadExecutorAwaitTerminationNotStarted() throws
Exception {
+ Assume.assumeTrue(JreCompat.isJre21Available());
@SuppressWarnings("resource") // never started
StandardVirtualThreadExecutor executor = new
StandardVirtualThreadExecutor();
try {
@@ -38,6 +41,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]