diff options
author | patriot1burke <patriot1burke@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-04-12 20:10:44 +0000 |
---|---|---|
committer | patriot1burke <patriot1burke@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-04-12 20:10:44 +0000 |
commit | 0cc8b5343f0902ebbec393f93e918ad0193be04b (patch) | |
tree | ec3077f60aea9ba94f0b6e06f490d599ff12ced9 | |
parent | e8ec218d123cf47bcf1ecaff41fbfcc93a13ed00 (diff) | |
download | javassist-0cc8b5343f0902ebbec393f93e918ad0193be04b.tar.gz javassist-0cc8b5343f0902ebbec393f93e918ad0193be04b.zip |
write0 should never delegate to parent. The ClassPool that the CtClass is associated
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
-rw-r--r-- | src/main/javassist/ClassPool.java | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/main/javassist/ClassPool.java b/src/main/javassist/ClassPool.java index cce32995..26468b43 100644 --- a/src/main/javassist/ClassPool.java +++ b/src/main/javassist/ClassPool.java @@ -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())) { |