@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(method(name, ret, args), flags);
methods.addElement(mg);
return mg;
}
int numFields = i.readShort();
for(int j=0; j<numFields; j++) fields.addElement(new FieldGen(i, cp));
int numMethods = i.readShort();
- for(int j=0; j<numMethods; j++) methods.addElement(new MethodGen(this, i, cp, (this.flags & INTERFACE) != 0));
+ for(int j=0; j<numMethods; j++) methods.addElement(new MethodGen(this.getType(), i, cp);
attributes = new AttrGen(i, cp);
// FEATURE: Support these