Skip to content

Commit f6d690d

Browse files
committed
further support for Virtual threads, issues 737
Signed-off-by: Ceki Gulcu <[email protected]>
1 parent 9a1fc44 commit f6d690d

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

logback-classic/src/test/java/ch/qos/logback/classic/util/EnvUtilTest.java

-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ public void versionTest() {
2626

2727

2828

29-
3029
}

logback-core/src/main/java/ch/qos/logback/core/util/ExecutorServiceUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class ExecutorServiceUtil {
4545
private final ThreadFactory defaultFactory = makeThreadFactory();
4646

4747
/**
48-
* A thread factory which may be a virtual thread factory if available.
48+
* A thread factory which may be a virtual thread factory the JDK supports it.
4949
*
5050
* @return
5151
*/

logback-core/src/test/java/ch/qos/logback/core/util/EnvUtilTest.java

+3
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,11 @@ public void jdkVersion() {
3939
Assertions.assertEquals(9, EnvUtil.getJDKVersion("9EA"));
4040
Assertions.assertEquals(9, EnvUtil.getJDKVersion("9.0.1"));
4141
Assertions.assertEquals(18, EnvUtil.getJDKVersion("18.3+xx"));
42+
Assertions.assertEquals(21, EnvUtil.getJDKVersion("21.0.1"));
4243
}
4344

45+
46+
4447
@Test
4548
public void testJava1_4() {
4649
System.setProperty("java.version", "1.4.xx");

0 commit comments

Comments
 (0)