Skip to content

Commit 7e083fd

Browse files
amarzialidevflow.devflow-routing-intake
andauthored
Unbound virtual thread tests (#11729)
Unbound virtual thread tests Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>
1 parent 5071d55 commit 7e083fd

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

  • dd-java-agent/instrumentation/java/java-concurrent/java-concurrent-21.0

dd-java-agent/instrumentation/java/java-concurrent/java-concurrent-21.0/build.gradle

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ apply from: "$rootDir/gradle/slf4j-simple.gradle"
88

99
testJvmConstraints {
1010
minJavaVersion = JavaVersion.VERSION_21
11-
// Structured concurrency is a preview feature in Java 21. Methods (e.g. ShutdownOnFailure) used in this instrumentation test are no longer available in Java 25, so we set the max version to 24.
12-
// See: https://download.java.net/java/early_access/loom/docs/api/java.base/java/util/concurrent/StructuredTaskScope.html
13-
maxJavaVersion = JavaVersion.VERSION_24
1411
}
1512

1613
muzzle {
@@ -30,6 +27,14 @@ idea {
3027
*/
3128
addTestSuite('previewTest')
3229

30+
tasks.named("previewTest").configure {
31+
testJvmConstraints {
32+
// Structured concurrency is a preview feature in Java 21. Methods (e.g. ShutdownOnFailure) used in this instrumentation test are no longer available in Java 25, so we set the max version to 24.
33+
// See: https://download.java.net/java/early_access/loom/docs/api/java.base/java/util/concurrent/StructuredTaskScope.html
34+
maxJavaVersion = JavaVersion.VERSION_24
35+
}
36+
}
37+
3338
// Set all compile tasks to use JDK21 but let instrumentation code targets 1.8 compatibility
3439
tasks.withType(AbstractCompile).configureEach {
3540
configureCompiler(it, 21, JavaVersion.VERSION_1_8)

0 commit comments

Comments
 (0)