From: chiba Date: Wed, 14 May 2003 16:47:17 +0000 (+0000) Subject: fixed a bug in makeClassInitializer() in CtClassType. X-Git-Tag: rel_3_17_1_ga~589 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=51df92b44b8e1dcbcdb75e1390a81c0aa2f9ae78;p=javassist.git fixed a bug in makeClassInitializer() in CtClassType. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@15 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- diff --git a/src/main/javassist/CtClassType.java b/src/main/javassist/CtClassType.java index 73a873e9..a9aa9c15 100644 --- a/src/main/javassist/CtClassType.java +++ b/src/main/javassist/CtClassType.java @@ -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(); }