Skip to content

Commit f0cf7f1

Browse files
committed
Fix multi-release JAR issue with VirtualThreadDelegate
This commit ensures that both `VirtualThreadDelegate` implementations expose the same public API. If not, JAR verification fails with the following message: ``` jar --validate --file spring-core-6.2.13-SNAPSHOT.jar entry: META-INF/versions/21/org/springframework/core/task/VirtualThreadDelegate.class, contains a class with different api from earlier version ``` Fixes gh-35773
1 parent b5008d3 commit f0cf7f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-core/src/main/java21/org/springframework/core/task/VirtualThreadDelegate.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ final class VirtualThreadDelegate {
3030

3131
private final Thread.Builder threadBuilder = Thread.ofVirtual();
3232

33+
public VirtualThreadDelegate() {
34+
35+
}
36+
3337
public ThreadFactory virtualThreadFactory() {
3438
return this.threadBuilder.factory();
3539
}

0 commit comments

Comments
 (0)