diff -r 6d0add6ad778 -r 23505e6ea22d src/share/classes/com/sun/tools/classfile/Field.java --- a/src/share/classes/com/sun/tools/classfile/Field.java Thu Jul 30 10:30:34 2009 +0100 +++ b/src/share/classes/com/sun/tools/classfile/Field.java Thu Jul 30 07:48:24 2009 -0700 @@ -50,6 +50,10 @@ this.attributes = attributes; } + public int byteLength() { + return 6 + attributes.byteLength(); + } + public String getName(ConstantPool constant_pool) throws ConstantPoolException { return constant_pool.getUTF8Value(name_index); }