8006948: Update javac for MethodParameters format change

Reviewed-by: ksrini, forax
This commit is contained in:
Eric Mccorkle 2013-02-19 17:19:01 -08:00 committed by Kumar Srinivasan
parent 68a3295c8b
commit bfe1255adc
4 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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() {

View File

@ -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;
}
}

View File

@ -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;