diff --git a/common/src/main/java/io/netty/util/internal/PlatformDependent.java b/common/src/main/java/io/netty/util/internal/PlatformDependent.java index a51543f1db..6194f2e909 100644 --- a/common/src/main/java/io/netty/util/internal/PlatformDependent.java +++ b/common/src/main/java/io/netty/util/internal/PlatformDependent.java @@ -285,6 +285,11 @@ public final class PlatformDependent { } private static boolean hasJavassist0() { + boolean noJavassist = SystemPropertyUtil.getBoolean("io.netty.noJavassist", false); + if (noJavassist) { + return false; + } + try { JavassistTypeParameterMatcherGenerator.generate(Object.class, PlatformDependent.class.getClassLoader()); return true;