提交 3fb09b9d 编写于 作者: K ksrini

8006948: Update javac for MethodParameters format change

Reviewed-by: ksrini, forax
Contributed-by: eric.mccorkle@oracle.com
上级 00599318
......@@ -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;
}
......
......@@ -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() {
......
......@@ -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;
}
}
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册