--- a/langtools/src/share/classes/com/sun/tools/classfile/ClassWriter.java Tue May 14 13:55:35 2013 -0700
+++ b/langtools/src/share/classes/com/sun/tools/classfile/ClassWriter.java Tue May 14 15:04:06 2013 -0700
@@ -751,7 +751,7 @@
break;
// exception parameter
case EXCEPTION_PARAMETER:
- out.writeByte(p.exception_index);
+ out.writeShort(p.exception_index);
break;
// method receiver
case METHOD_RECEIVER:
@@ -770,11 +770,11 @@
break;
// class extends or implements clause
case CLASS_EXTENDS:
- out.writeByte(p.type_index);
+ out.writeShort(p.type_index);
break;
// throws
case THROWS:
- out.writeByte(p.type_index);
+ out.writeShort(p.type_index);
break;
// method parameter
case METHOD_FORMAL_PARAMETER: