X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fclassgen%2FClassFile.java;h=2cd4d5faaac6cfacccbc10bfe1df3b426b9c3dd6;hb=deddf29af9d9b41f56d8d3586894b6941eb52dc3;hp=8cb28536381221c40a952f6696b233d9a0e80c4c;hpb=6d02ca13f481e213ee0ae26f7acdd40b20dfc6af;p=org.ibex.classgen.git diff --git a/src/org/ibex/classgen/ClassFile.java b/src/org/ibex/classgen/ClassFile.java index 8cb2853..2cd4d5f 100644 --- a/src/org/ibex/classgen/ClassFile.java +++ b/src/org/ibex/classgen/ClassFile.java @@ -86,7 +86,7 @@ public class ClassFile implements CGConst { @see CGConst */ public final MethodGen addMethod(String name, Type ret, Type[] args, int flags) { - MethodGen mg = new MethodGen(this, name, ret, args, flags, (this.flags & INTERFACE) != 0); + MethodGen mg = new MethodGen(getType().method(name, ret, args), flags); methods.addElement(mg); return mg; } @@ -215,7 +215,7 @@ public class ClassFile implements CGConst { int numFields = i.readShort(); for(int j=0; j