aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/reflect/Loader.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/reflect/Loader.java')
-rw-r--r--src/main/javassist/reflect/Loader.java5
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);
}
/**