Skip to content

Commit

Permalink
nit change
Browse files Browse the repository at this point in the history
  • Loading branch information
asotona committed Jul 19, 2024
1 parent c5f6e01 commit af796a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/jdk/jdk/classfile/VerifierSelfTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void writeBody(BufWriter b) {
@Test
void testInvalidClassNameEntry() {
var cc = ClassFile.of();
var bytes = ClassFile.of().parse(new byte[]{(byte)0xCA, (byte)0xFE, (byte)0xBA, (byte)0xBE,
var bytes = cc.parse(new byte[]{(byte)0xCA, (byte)0xFE, (byte)0xBA, (byte)0xBE,
0, 0, 0, 0, 0, 2, ClassFile.TAG_INTEGER, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0});
assertTrue(cc.verify(bytes).stream().anyMatch(e -> e.getMessage().contains("expected ClassEntry")));
}
Expand Down

0 comments on commit af796a0

Please sign in to comment.