Add a system property that disables Javassist
This commit is contained in:
parent
54d44c6ac1
commit
9475f9aeea
@ -285,6 +285,11 @@ public final class PlatformDependent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static boolean hasJavassist0() {
|
private static boolean hasJavassist0() {
|
||||||
|
boolean noJavassist = SystemPropertyUtil.getBoolean("io.netty.noJavassist", false);
|
||||||
|
if (noJavassist) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
JavassistTypeParameterMatcherGenerator.generate(Object.class, PlatformDependent.class.getClassLoader());
|
JavassistTypeParameterMatcherGenerator.generate(Object.class, PlatformDependent.class.getClassLoader());
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user