- FieldGen(DataInput in) { throw new Error("Brian is lame"); }
- FieldGen(ClassGen owner, String name, Type type, int flags) {
+ FieldGen(ConstantPool cp, DataInput in) throws IOException {
+ this.cp = cp;
+ flags = in.readShort();
+ name = cp.getUtf8ByIndex(in.readShort());
+ type = cp.getType(in.readShort());
+ attrs = new ClassFile.AttrGen(cp, in);
+ }
+
+ FieldGen(ClassFile owner, String name, Type type, int flags) {