Skip to content

Commit 06e3d00

Browse files
committed
Test java-concurrent-21 on Java 21-24 only
1 parent 33dc1bb commit 06e3d00

File tree

1 file changed

+3
-0
lines changed
  • dd-java-agent/instrumentation/java-concurrent/java-concurrent-21

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
ext {
22
minJavaVersionForTests = JavaVersion.VERSION_21
3+
// 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.
4+
// See: https://download.java.net/java/early_access/loom/docs/api/java.base/java/util/concurrent/StructuredTaskScope.html
5+
maxJavaVersionForTests = JavaVersion.VERSION_24
36
}
47

58
apply from: "$rootDir/gradle/java.gradle"

0 commit comments

Comments
 (0)