diff options
Diffstat (limited to 'src/main/javassist/reflect/Loader.java')
-rw-r--r-- | src/main/javassist/reflect/Loader.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/javassist/reflect/Loader.java b/src/main/javassist/reflect/Loader.java index 626c329e..68381956 100644 --- a/src/main/javassist/reflect/Loader.java +++ b/src/main/javassist/reflect/Loader.java @@ -128,14 +128,13 @@ public class Loader extends javassist.Loader { /** * Constructs a new class loader. */ - public Loader() { + public Loader() throws CannotCompileException, NotFoundException { super(); delegateLoadingOf("javassist.reflect.Loader"); reflection = new Reflection(); ClassPool pool = ClassPool.getDefault(); - pool.addTranslator(reflection); - setClassPool(pool); + addTranslator(pool, reflection); } /** |