changeset 351:160d7a994e69

6858429: javap classfile library a minor bug Reviewed-by: ksrini
author jjg
date Thu, 06 Aug 2009 19:35:41 -0700
parents 526de25e0b28
children 3e38c6da72ec
files src/share/classes/com/sun/tools/classfile/ClassWriter.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/classfile/ClassWriter.java	Wed Aug 05 08:38:18 2009 -0700
+++ b/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;