# HG changeset patch # User jjg # Date 1249612541 25200 # Node ID 41bc8392677e9e1569a7e4afa03b66a285acdc1c # Parent fd92f0d28cb93f9dbbbec1ed09bb0bea3394af7b 6858429: javap classfile library a minor bug Reviewed-by: ksrini diff -r fd92f0d28cb9 -r 41bc8392677e langtools/src/share/classes/com/sun/tools/classfile/ClassWriter.java --- a/langtools/src/share/classes/com/sun/tools/classfile/ClassWriter.java Wed Aug 05 08:38:18 2009 -0700 +++ b/langtools/src/share/classes/com/sun/tools/classfile/ClassWriter.java Thu Aug 06 19:35:41 2009 -0700 @@ -435,7 +435,7 @@ } public Void visitLocalVariableTypeTable(LocalVariableTypeTable_attribute attr, ClassOutputStream out) { - out.writeByte(attr.local_variable_table.length); + out.writeShort(attr.local_variable_table.length); for (LocalVariableTypeTable_attribute.Entry e: attr.local_variable_table) writeLocalVariableTypeTableEntry(e, out); return null;