Skip to content

Commit 56bb82c

Browse files
committed
fix: dd-smoke-tests needs to use Java 8
ProcessManager uses the `CharBuffer.flip` method, which is coming from the super class in JDK 8 so its signature is `()Ljava.nio.Buffer`, but since JDK9 `CharBuffer` overrides it, in the bytecode the signatures becomes `()Ljava.nio.CharBuffer`. This code fails when running with testJvm=8.
1 parent 06af548 commit 56bb82c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dd-smoke-tests/build.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ dependencies {
99
api project(':utils:test-agent-utils:decoder')
1010
}
1111

12+
tasks.withType(GroovyCompile).configureEach {
13+
configureCompiler(
14+
it,
15+
8,
16+
JavaVersion.VERSION_1_8,
17+
"CharBuffer#flip() signature needs to be ()Ljava.nio.Buffer (to run on JDK8)."
18+
)
19+
}
20+
1221
// Disable forbiddenApis for all smoke-test modules
1322
allprojects {
1423
tasks.matching { it.name.startsWith('forbiddenApis') }.configureEach {

0 commit comments

Comments
 (0)