8006948: Update javac for MethodParameters format change
Reviewed-by: ksrini, forax
This commit is contained in:
parent
68a3295c8b
commit
bfe1255adc
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user