]> source.dussan.org Git - javassist.git/commitdiff
write0 should never delegate to parent. The ClassPool that the CtClass is associated
authorpatriot1burke <patriot1burke@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Mon, 12 Apr 2004 20:10:44 +0000 (20:10 +0000)
committerpatriot1burke <patriot1burke@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Mon, 12 Apr 2004 20:10:44 +0000 (20:10 +0000)
with should always be the pool that loaded the class.

git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@82 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/ClassPool.java

index cce32995092b7b604f5ce8446c87889b8a68319c..26468b4331e2af83db40267900c2e4ed988ec750 100644 (file)
@@ -525,10 +525,6 @@ public class ClassPool extends AbsClassPool {
     boolean write0(String classname, DataOutputStream out, boolean callback)
         throws NotFoundException, CannotCompileException, IOException
     {
-        // first, delegate to the parent.
-        if (parent != null && parent.write0(classname, out, callback))
-            return true;
-
         CtClass clazz = (CtClass)getCached(classname);
         if (callback && translator != null
                                 && (clazz == null || !clazz.isFrozen())) {