X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;ds=sidebyside;f=src%2Forg%2Fibex%2Fclassgen%2FFieldGen.java;h=330849b096c0fbd6f31457a1f2eba5aa337a4b0d;hb=50a344886756b00af0e30d548a7a86822ef7e962;hp=826eb7884c56f1efe674f353c3a104bfb7dd6be7;hpb=94cebd4c12247ae7fd0a4b0cc66609fead0efece;p=org.ibex.classgen.git diff --git a/src/org/ibex/classgen/FieldGen.java b/src/org/ibex/classgen/FieldGen.java index 826eb78..330849b 100644 --- a/src/org/ibex/classgen/FieldGen.java +++ b/src/org/ibex/classgen/FieldGen.java @@ -13,7 +13,8 @@ public class FieldGen implements CGConst { private Object constantValue; - FieldGen(ClassGen owner, String name,Type type, int flags) { + FieldGen(DataInput in) { throw new Error("Brian is lame"); } + FieldGen(ClassGen owner, String name, Type type, int flags) { if((flags & ~(ACC_PUBLIC|ACC_PRIVATE|ACC_PROTECTED|ACC_VOLATILE|ACC_TRANSIENT|ACC_STATIC|ACC_FINAL)) != 0) throw new IllegalArgumentException("invalid flags"); this.cp = owner.cp; @@ -35,7 +36,7 @@ public class FieldGen implements CGConst { void finish() { if(constantValue != null && !attrs.contains("ConstantValue")) - attrs.add("ConstantValue",cp.add(constantValue)); + attrs.add("ConstantValue", cp.add(constantValue)); } void dump(DataOutput o) throws IOException {