aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/reflect/Loader.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-04-14 15:49:55 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2004-04-14 15:49:55 +0000
commit3f73777f2cdf408d47bd85417611635235bdd7ed (patch)
treec0d6156cae1ca72e8ec2f3c36b8b83bcaae30916 /src/main/javassist/reflect/Loader.java
parent2d7afcd04b007ef3322b132d82f3f32889414232 (diff)
downloadjavassist-3f73777f2cdf408d47bd85417611635235bdd7ed.tar.gz
javassist-3f73777f2cdf408d47bd85417611635235bdd7ed.zip
modified the ClassPool framework.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@84 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
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);
}
/**