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

@ -114,7 +114,7 @@ public class ModuleVersion extends ModuleTestBase {
private void checkModuleVersion(Path classfile, String version) throws IOException {
ClassModel cm = ClassFile.of().parse(classfile);
ModuleAttribute moduleAttribute = cm.findAttribute(Attributes.MODULE).orElse(null);
ModuleAttribute moduleAttribute = cm.findAttribute(Attributes.module()).orElse(null);
if (moduleAttribute == null) {
throw new AssertionError("Version attribute missing!");