]> source.dussan.org Git - javassist.git/commitdiff
fixed a bug in makeClassInitializer() in CtClassType.
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Wed, 14 May 2003 16:47:17 +0000 (16:47 +0000)
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>
Wed, 14 May 2003 16:47:17 +0000 (16:47 +0000)
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@15 30ef5769-5b8d-40dd-aea6-55b5d6557bb3

src/main/javassist/CtClassType.java

index 73a873e97f4ff147772e40b6d92f66e5b1e76591..a9aa9c15abc79fba44c74bb7ccecb91083e74f43 100644 (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();
     }