Skip to content

Commit 9cda87e

Browse files
authored
Remove netty workaround (#13975)
1 parent 449fb34 commit 9cda87e

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

testing-common/src/main/java/io/opentelemetry/instrumentation/testing/InstrumentationTestRunner.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,6 @@
4545
*/
4646
public abstract class InstrumentationTestRunner {
4747

48-
static {
49-
// In netty-4.1.121.Final unsafe usage is disabled by default on jdk24. This triggers using
50-
// a different pooled buffer implementation which apparently breaks when initializing ssl. Here
51-
// we switch to unpooled buffers to avoid that bug. We do this here because this code is
52-
// executed early for both agent and library tests.
53-
if (Double.parseDouble(System.getProperty("java.specification.version")) >= 24) {
54-
System.setProperty("io.opentelemetry.testing.internal.io.netty.allocator.type", "unpooled");
55-
}
56-
}
57-
5848
private final TestInstrumenters testInstrumenters;
5949
protected Map<String, MetricData> metrics = new HashMap<>();
6050

0 commit comments

Comments
 (0)