Add a system property that disables Javassist

This commit is contained in:
Trustin Lee 2013-02-08 22:14:38 +09:00
parent 54d44c6ac1
commit 9475f9aeea

View File

@ -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;