8331291: java.lang.classfile.Attributes class performs a lot of static initializations

Reviewed-by: liach, redestad, vromero
This commit is contained in:
Adam Sotona 2024-05-24 15:58:34 +00:00
parent 0c934ff4e2
commit cfdc64fcb4
149 changed files with 1669 additions and 1323 deletions

View file

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