Skip to content

Commit

Permalink
rename and API changes fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
asotona committed Dec 6, 2023
1 parent 225ece6 commit cf3123e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@
import java.util.List;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import jdk.internal.classfile.Attribute;
import jdk.internal.classfile.AttributedElement;
import jdk.internal.classfile.ClassModel;
import jdk.internal.classfile.ClassfileElement;
import jdk.internal.classfile.CodeModel;
import jdk.internal.classfile.CompoundElement;
import jdk.internal.classfile.FieldModel;
import jdk.internal.classfile.MethodModel;
import jdk.internal.classfile.attribute.*;
import jdk.internal.classfile.constantpool.*;
import java.lang.classfile.Attribute;
import java.lang.classfile.AttributedElement;
import java.lang.classfile.ClassModel;
import java.lang.classfile.ClassFileElement;
import java.lang.classfile.CodeModel;
import java.lang.classfile.CompoundElement;
import java.lang.classfile.FieldModel;
import java.lang.classfile.MethodModel;
import java.lang.classfile.attribute.*;
import java.lang.classfile.constantpool.*;
import jdk.internal.classfile.impl.BoundAttribute;

/**
Expand Down Expand Up @@ -158,7 +158,7 @@ private void verifyMethods(List<VerifyError> errors) {
}
}

private void verifyAttributes(ClassfileElement cfe, List<VerifyError> errors) {
private void verifyAttributes(ClassFileElement cfe, List<VerifyError> errors) {
if (cfe instanceof AttributedElement ae) {
var attrNames = new HashSet<String>();
for (var a : ae.attributes()) {
Expand Down
2 changes: 1 addition & 1 deletion test/jdk/jdk/classfile/VerifierSelfTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void testParserVerification() {
.withMethod("<>", MTD_void, ClassFile.ACC_NATIVE, mb -> {})
.withMethod("<>", MTD_void, ClassFile.ACC_NATIVE, mb -> {});
}));
var found = clm.verify(null).stream().map(VerifyError::getMessage).collect(Collectors.toCollection(LinkedList::new));
var found = cc.verify(clm).stream().map(VerifyError::getMessage).collect(Collectors.toCollection(LinkedList::new));
var expected = STR."""
Invalid class name: invalid.class.name at constant pool index \{ indexes[0] } in class ParserVerificationTestClass
Bad method descriptor: invalid method type at constant pool index \{ indexes[1] } in class ParserVerificationTestClass
Expand Down

0 comments on commit cf3123e

Please sign in to comment.