m.super();
this.flags = flags;
if ((flags & ~VALID_METHOD_FLAGS) != 0) throw new ClassFile.ClassReadExn("invalid flags");
- this.method = m;
+ this.method = c.method(name,typeDescriptor);
this.attrs = new ClassFile.AttrGen(in,cp);
if ((flags & (NATIVE|ABSTRACT))==0) {
*/
void finish(ConstantPool cp) {
cp.addUtf8(method.name);
- cp.addUtf8(method.getDescriptor());
+ cp.addUtf8(method.getTypeDescriptor());
for(Enumeration e = thrownExceptions.keys();e.hasMoreElements();)
cp.add(e.nextElement());
o.writeShort(flags);
o.writeShort(cp.getUtf8Index(method.name));
- o.writeShort(cp.getUtf8Index(method.getDescriptor()));
+ o.writeShort(cp.getUtf8Index(method.getTypeDescriptor()));
attrs.dump(o,cp);
}