6858429: javap classfile library a minor bug
authorjjg
Thu, 06 Aug 2009 19:35:41 -0700
changeset 3550 41bc8392677e
parent 3548 fd92f0d28cb9
child 3551 710c54251a8e
6858429: javap classfile library a minor bug Reviewed-by: ksrini
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;