diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-04-05 09:24:26 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-04-05 09:24:26 +0000 |
commit | f56bd9e72f3032f66241f864725f208e0df03839 (patch) | |
tree | 15074c6e93bc08dd0af9ec4dc207bf9822a3f7b4 /src/main/javassist/rmi | |
parent | ed96cc41015dae453237abc3934c2570e770bf53 (diff) | |
download | javassist-f56bd9e72f3032f66241f864725f208e0df03839.tar.gz javassist-f56bd9e72f3032f66241f864725f208e0df03839.zip |
changed the stuff related to ClassPool.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@76 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/rmi')
-rw-r--r-- | src/main/javassist/rmi/AppletServer.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main/javassist/rmi/AppletServer.java b/src/main/javassist/rmi/AppletServer.java index aab9dbcc..a848c5c4 100644 --- a/src/main/javassist/rmi/AppletServer.java +++ b/src/main/javassist/rmi/AppletServer.java @@ -60,7 +60,7 @@ public class AppletServer extends Webserver { public AppletServer(int port) throws IOException, NotFoundException, CannotCompileException { - this(ClassPool.getDefault(new StubGenerator()), port); + this(ClassPool.getDefault(), new StubGenerator(), port); } /** @@ -72,16 +72,17 @@ public class AppletServer extends Webserver { public AppletServer(int port, ClassPool src) throws IOException, NotFoundException, CannotCompileException { - this(new ClassPool(src, new StubGenerator()), port); + this(new ClassPool(src), new StubGenerator(), port); } - private AppletServer(ClassPool loader, int port) + private AppletServer(ClassPool loader, StubGenerator gen, int port) throws IOException, NotFoundException, CannotCompileException { super(port); exportedNames = new Hashtable(); exportedObjects = new Vector(); - stubGen = (StubGenerator)loader.getTranslator(); + stubGen = gen; + loader.insertTranslator(gen); setClassPool(loader); } |