mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 23:34:52 +02:00
8331291: java.lang.classfile.Attributes class performs a lot of static initializations
Reviewed-by: liach, redestad, vromero
This commit is contained in:
parent
0c934ff4e2
commit
cfdc64fcb4
149 changed files with 1669 additions and 1323 deletions
|
@ -90,13 +90,13 @@ public class LocalVariableTable {
|
|||
return;
|
||||
}
|
||||
|
||||
CodeAttribute code = m.findAttribute(Attributes.CODE).orElse(null);
|
||||
CodeAttribute code = m.findAttribute(Attributes.code()).orElse(null);
|
||||
if (code == null) {
|
||||
error("Code attribute not found");
|
||||
return;
|
||||
}
|
||||
|
||||
LocalVariableTableAttribute lvt = code.findAttribute(Attributes.LOCAL_VARIABLE_TABLE).orElse(null);
|
||||
LocalVariableTableAttribute lvt = code.findAttribute(Attributes.localVariableTable()).orElse(null);
|
||||
if (lvt == null) {
|
||||
error("LocalVariableTable attribute not found");
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue