mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6866657: add byteLength method to primary classfile types
Reviewed-by: mchung
This commit is contained in:
parent
638db1aabb
commit
219445d03a
8 changed files with 197 additions and 0 deletions
|
@ -50,6 +50,10 @@ public class Field {
|
|||
this.attributes = attributes;
|
||||
}
|
||||
|
||||
public int byteLength() {
|
||||
return 6 + attributes.byteLength();
|
||||
}
|
||||
|
||||
public String getName(ConstantPool constant_pool) throws ConstantPoolException {
|
||||
return constant_pool.getUTF8Value(name_index);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue