浏览代码

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
tags/rel_3_17_1_ga
patriot1burke 20 年前
父节点
当前提交
0cc8b5343f
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0
    4
      src/main/javassist/ClassPool.java

+ 0
- 4
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())) {

正在加载...
取消
保存