Skip to content

Commit

Permalink
Update to latest ASM API level
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 353278492
  • Loading branch information
cushon authored and Javac Team committed Jan 22, 2021
1 parent a033c2f commit ba757a3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void roundTrip() throws Exception {
try {
new ClassReader(Files.newInputStream(path))
.accept(
new ClassVisitor(Opcodes.ASM7) {
new ClassVisitor(Opcodes.ASM9) {
@Override
public void visit(
int version,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ private static void collectTypesFromSignature(Set<String> classes, String signat
final Set<String> classes1 = classes;
new SignatureReader(signature)
.accept(
new SignatureVisitor(Opcodes.ASM7) {
new SignatureVisitor(Opcodes.ASM9) {
private final Set<String> classes = classes1;
// class signatures may contain type arguments that contain class signatures
Deque<List<String>> pieces = new ArrayDeque<>();
Expand Down
12 changes: 6 additions & 6 deletions javatests/com/google/turbine/lower/LowerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ public void innerClassAttributeOrder() throws IOException {
List<String> attributes = new ArrayList<>();
new ClassReader(lowered.get("Test$Inner$InnerMost"))
.accept(
new ClassVisitor(Opcodes.ASM7) {
new ClassVisitor(Opcodes.ASM9) {
@Override
public void visitInnerClass(
String name, String outerName, String innerName, int access) {
Expand Down Expand Up @@ -346,11 +346,11 @@ public void typePath() throws Exception {
TypePath[] path = new TypePath[1];
new ClassReader(lowered.get("Test"))
.accept(
new ClassVisitor(Opcodes.ASM7) {
new ClassVisitor(Opcodes.ASM9) {
@Override
public FieldVisitor visitField(
int access, String name, String desc, String signature, Object value) {
return new FieldVisitor(Opcodes.ASM7) {
return new FieldVisitor(Opcodes.ASM9) {
@Override
public AnnotationVisitor visitTypeAnnotation(
int typeRef, TypePath typePath, String desc, boolean visible) {
Expand Down Expand Up @@ -397,7 +397,7 @@ public void invalidConstants() throws Exception {
Map<String, Object> values = new LinkedHashMap<>();
new ClassReader(actual.get("Test"))
.accept(
new ClassVisitor(Opcodes.ASM7) {
new ClassVisitor(Opcodes.ASM9) {
@Override
public FieldVisitor visitField(
int access, String name, String desc, String signature, Object value) {
Expand All @@ -424,7 +424,7 @@ public void deprecated() throws Exception {
int[] acc = {0};
new ClassReader(lowered.get("Test"))
.accept(
new ClassVisitor(Opcodes.ASM7) {
new ClassVisitor(Opcodes.ASM9) {
@Override
public void visit(
int version,
Expand Down Expand Up @@ -629,7 +629,7 @@ public void multipleVisibilities() throws Exception {
int[] testAccess = {0};
new ClassReader(lowered.get("Test"))
.accept(
new ClassVisitor(Opcodes.ASM7) {
new ClassVisitor(Opcodes.ASM9) {
@Override
public void visit(
int version,
Expand Down

0 comments on commit ba757a3

Please sign in to comment.