From c09ba53141956b0f74f8240232b2297f9ef5c7c8 Mon Sep 17 00:00:00 2001 From: jjg Date: Thu, 6 Aug 2009 19:35:41 -0700 Subject: [PATCH] 6858429: javap classfile library a minor bug Reviewed-by: ksrini --- src/share/classes/com/sun/tools/classfile/ClassWriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/share/classes/com/sun/tools/classfile/ClassWriter.java b/src/share/classes/com/sun/tools/classfile/ClassWriter.java index 96ae0cfa..8f8a6eda 100644 --- a/src/share/classes/com/sun/tools/classfile/ClassWriter.java +++ b/src/share/classes/com/sun/tools/classfile/ClassWriter.java @@ -435,7 +435,7 @@ public class ClassWriter { } 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; -- GitLab