Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ workflow:
- "17"
- "21"
- "25"
- "28" # TODO(JDK-28-EA): remove after GA (tip will move to 28)
Comment thread
PerfectSlayer marked this conversation as resolved.
Resolved
Comment thread
PerfectSlayer marked this conversation as resolved.
Resolved
Comment thread
PerfectSlayer marked this conversation as resolved.
Resolved
- "oracle8"
- "zulu8"
- "semeru8"
Expand Down Expand Up @@ -1079,7 +1080,7 @@ test_inst_latest:
CACHE_TYPE: "latestdep"
parallel:
matrix:
- testJvm: ["8", "17", "21", "25", "tip"]
- testJvm: ["8", "17", "21", "25", "28", "tip"] # TODO(JDK-28-EA): remove 28 after GA (tip will move to 28)
# Gitlab doesn't support "parallel" and "parallel:matrix" at the same time
# This emulates "parallel" by including it in the matrix
CI_SPLIT: [ "1/6", "2/6", "3/6", "4/6", "5/6", "6/6"]
Expand All @@ -1092,7 +1093,7 @@ test_inst_latest_arm64:
CACHE_TYPE: "latestdep"
parallel:
matrix:
- testJvm: ["17", "21", "25", "tip"]
- testJvm: ["17", "21", "25", "28", "tip"] # TODO(JDK-28-EA): remove 28 after GA (tip will move to 28)
# Gitlab doesn't support "parallel" and "parallel:matrix" at the same time
# This emulates "parallel" by including it in the matrix
CI_SPLIT: [ "1/6", "2/6", "3/6", "4/6", "5/6", "6/6"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,13 @@ class TestJvmConstraintsPlugin : Plugin<Project> {
extension.allowReflectiveAccessToJdk
)

// TODO(JDK-28-EA): remove once Objenesis (Mockito, Spock mocks) no longer needs it.
// Java 28+ rejects ReflectionFactory.newConstructorForSerialization for non-serializable classes.
conditionalJvmArgs(
JavaVersion.toVersion(28),
listOf("-Djdk.reflect.allowNonSerializableConstruction=true")
)

// Fix for Linux arm64 ByteBuddy error:
// "Could not self-attach to current VM using external process"
if (HostPlatform.isLinuxArm64()) {
Expand Down
7 changes: 7 additions & 0 deletions dd-java-agent/instrumentation/jsp-2.3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ muzzle {

addTestSuiteForDir('latestDepTest', 'test')

tasks.named("test") {
testJvmConstraints {
// TODO(JDK-28-EA): the JDT compiler of Tomcat 7.0.37 Jasper cannot read Java 28 class files
maxJavaVersion = JavaVersion.VERSION_27
}
}

dependencies {
// compiling against tomcat 7.0.20 because there seems to be some issues with Tomcat's dependency < 7.0.20
compileOnly group: 'org.apache.tomcat', name: 'tomcat-jasper', version: '7.0.20'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public static boolean disabledOnIbm8() {
@BeforeEach
void resetMockBackend() {
assumeFalse(JavaVirtualMachine.isJavaVersion(27), "JDK 27 TODO: address failing test");
assumeFalse(JavaVirtualMachine.isJavaVersion(28), "TODO(JDK-28-EA): address failing test");
mockBackend.reset();
}

Expand Down