Browse Source

fixed a bug in makeClassInitializer() in CtClassType.


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@15 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 21 years ago
parent
commit
51df92b44b
1 changed files with 1 additions and 7 deletions
  1. 1
    7
      src/main/javassist/CtClassType.java

+ 1
- 7
src/main/javassist/CtClassType.java View File

@@ -639,13 +639,7 @@ class CtClassType extends CtClass {
checkModify();
ClassFile cf = getClassFile2();
Bytecode code = new Bytecode(cf.getConstPool(), 0, 0);
try {
modifyClassConstructor(cf, b, 0, 0);
}
catch (CompileError e) {
throw new CannotCompileException(e);
}

modifyClassConstructor(cf, code, 0, 0);
return getClassInitializer();
}


Loading…
Cancel
Save