From a02ae0100e290acf52a7366b4e963e5443b17308 Mon Sep 17 00:00:00 2001 From: Lauri Tulmin Date: Tue, 3 Jun 2025 14:22:34 +0300 Subject: [PATCH] Remove netty workaround --- .../testing/InstrumentationTestRunner.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/InstrumentationTestRunner.java b/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/InstrumentationTestRunner.java index 088693ad3b77..8cae71b0684c 100644 --- a/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/InstrumentationTestRunner.java +++ b/testing-common/src/main/java/io/opentelemetry/instrumentation/testing/InstrumentationTestRunner.java @@ -45,16 +45,6 @@ */ public abstract class InstrumentationTestRunner { - static { - // In netty-4.1.121.Final unsafe usage is disabled by default on jdk24. This triggers using - // a different pooled buffer implementation which apparently breaks when initializing ssl. Here - // we switch to unpooled buffers to avoid that bug. We do this here because this code is - // executed early for both agent and library tests. - if (Double.parseDouble(System.getProperty("java.specification.version")) >= 24) { - System.setProperty("io.opentelemetry.testing.internal.io.netty.allocator.type", "unpooled"); - } - } - private final TestInstrumenters testInstrumenters; protected Map metrics = new HashMap<>();