aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorLiam Miller-Cushon <cushon@google.com>2021-09-16 20:52:44 -0700
committerJavac Team <javac-team+copybara@google.com>2021-09-16 20:53:16 -0700
commit9c70fad35e1d8959048816ca64d2bb4dc684d072 (patch)
treef7d4b932079fb6491e7d604a659718f261c799c3 /java
parent0f596d85253fe546c1c3208a58f34c3a1296ca44 (diff)
downloadturbine-9c70fad35e1d8959048816ca64d2bb4dc684d072.tar.gz
Fix an infinite loop in pretty-printing
PiperOrigin-RevId: 397232971
Diffstat (limited to 'java')
-rw-r--r--java/com/google/turbine/tree/Pretty.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/google/turbine/tree/Pretty.java b/java/com/google/turbine/tree/Pretty.java
index 6838530..1c758cb 100644
--- a/java/com/google/turbine/tree/Pretty.java
+++ b/java/com/google/turbine/tree/Pretty.java
@@ -218,7 +218,7 @@ public class Pretty implements Tree.Visitor<@Nullable Void, @Nullable Void> {
@Override
public @Nullable Void visitClassLiteral(ClassLiteral classLiteral, @Nullable Void input) {
- classLiteral.accept(this, input);
+ classLiteral.type().accept(this, input);
append(".class");
return null;
}