diff --git a/src/share/classes/com/sun/tools/classfile/ClassWriter.java b/src/share/classes/com/sun/tools/classfile/ClassWriter.java index 9628b961f7956b04675f5944e1b95e18fd0352ed..be6d5282c69e40d2e204ece6356292b4e2a64118 100644 --- a/src/share/classes/com/sun/tools/classfile/ClassWriter.java +++ b/src/share/classes/com/sun/tools/classfile/ClassWriter.java @@ -483,7 +483,7 @@ public class ClassWriter { out.writeByte(attr.method_parameter_table.length); for (MethodParameters_attribute.Entry e : attr.method_parameter_table) { out.writeShort(e.name_index); - out.writeInt(e.flags); + out.writeShort(e.flags); } return null; } diff --git a/src/share/classes/com/sun/tools/classfile/MethodParameters_attribute.java b/src/share/classes/com/sun/tools/classfile/MethodParameters_attribute.java index cbf44d20ae4ef474e739ce5a95c043fb680d95ff..bf060cf8a269110e892a84b3ae69ce1165a588b3 100644 --- a/src/share/classes/com/sun/tools/classfile/MethodParameters_attribute.java +++ b/src/share/classes/com/sun/tools/classfile/MethodParameters_attribute.java @@ -73,7 +73,7 @@ public class MethodParameters_attribute extends Attribute { public static class Entry { Entry(ClassReader cr) throws IOException { name_index = cr.readUnsignedShort(); - flags = cr.readInt(); + flags = cr.readUnsignedShort(); } public static int length() { diff --git a/src/share/classes/com/sun/tools/javac/jvm/ClassReader.java b/src/share/classes/com/sun/tools/javac/jvm/ClassReader.java index 554984b9e2f583efec8f27639356a0432372e327..75f351f42f53595357ff5fb07a34dbe776bd2796 100644 --- a/src/share/classes/com/sun/tools/javac/jvm/ClassReader.java +++ b/src/share/classes/com/sun/tools/javac/jvm/ClassReader.java @@ -1036,7 +1036,7 @@ public class ClassReader implements Completer { haveParameterNameIndices = true; for (int i = 0; i < numEntries; i++) { int nameIndex = nextChar(); - int flags = nextInt(); + int flags = nextChar(); parameterNameIndices[i] = nameIndex; } } diff --git a/src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java b/src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java index 89395606d46ca22984a75fc8fe10596546376266..0a8980acd1f19d08dea3dbb938d606437d1d4cf7 100644 --- a/src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java +++ b/src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java @@ -659,7 +659,7 @@ public class ClassWriter extends ClassFile { ((int) s.flags() & (FINAL | SYNTHETIC | MANDATED)) | ((int) m.flags() & SYNTHETIC); databuf.appendChar(pool.put(s.name)); - databuf.appendInt(flags); + databuf.appendChar(flags); } endAttr(attrIndex); return 1;