提交 9ae9e506 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix TestKeywords

上级 96e46a5e
...@@ -39,7 +39,7 @@ public class TestKeywords extends TestBase { ...@@ -39,7 +39,7 @@ public class TestKeywords extends TestBase {
public void test() throws Exception { public void test() throws Exception {
final HashSet<String> set = new HashSet<>(); final HashSet<String> set = new HashSet<>();
ClassReader r = new ClassReader(Parser.class.getResourceAsStream("Parser.class")); ClassReader r = new ClassReader(Parser.class.getResourceAsStream("Parser.class"));
r.accept(new ClassVisitor(Opcodes.ASM6) { r.accept(new ClassVisitor(Opcodes.ASM7) {
@Override @Override
public FieldVisitor visitField(int access, String name, String descriptor, String signature, public FieldVisitor visitField(int access, String name, String descriptor, String signature,
Object value) { Object value) {
...@@ -50,7 +50,7 @@ public class TestKeywords extends TestBase { ...@@ -50,7 +50,7 @@ public class TestKeywords extends TestBase {
@Override @Override
public MethodVisitor visitMethod(int access, String name, String descriptor, String signature, public MethodVisitor visitMethod(int access, String name, String descriptor, String signature,
String[] exceptions) { String[] exceptions) {
return new MethodVisitor(Opcodes.ASM6) { return new MethodVisitor(Opcodes.ASM7) {
@Override @Override
public void visitLdcInsn(Object value) { public void visitLdcInsn(Object value) {
add(set, value); add(set, value);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论