+ /** Sets the ContantValue attribute for this field.
+ @param val The value to set this field to. Must be an Integer, Long, Float, Double, or String */
+ public void setConstantValue(Object val) {
+ if((flags & ACC_STATIC) == 0) throw new IllegalStateException("field does not have the ACC_STATIC bit set");
+ constantValue = val;
+ }
+
+ void finish() {
+ if(constantValue != null && !attrs.contains("ConstantValue"))
+ attrs.add("ConstantValue",cp.add(constantValue));
+ }
+
+ void dump(DataOutput o) throws IOException {