diff --git a/common/src/main/java/io/netty/util/internal/JavassistTypeParameterMatcherGenerator.java b/common/src/main/java/io/netty/util/internal/JavassistTypeParameterMatcherGenerator.java index e3614b331e..85f5c2ad6a 100644 --- a/common/src/main/java/io/netty/util/internal/JavassistTypeParameterMatcherGenerator.java +++ b/common/src/main/java/io/netty/util/internal/JavassistTypeParameterMatcherGenerator.java @@ -46,6 +46,10 @@ public final class JavassistTypeParameterMatcherGenerator { classPool.appendClassPath(pathname); } + public static ClassPool classPool() { + return classPool; + } + public static TypeParameterMatcher generate(Class type) { ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); if (classLoader == null) {