1 From 12f69f5bb0e10f608b1899bab67b1813e0fdaf14 Mon Sep 17 00:00:00 2001 2 From: Andreas Gampe <agampe (a] google.com> 3 Date: Tue, 20 Feb 2018 09:51:42 -0800 4 Subject: [PATCH] Antlr: Fix infinite recursion 5 6 Bug: 73645371 7 Test: m javac-check RUN_ERROR_PRONE=true 8 Change-Id: Ie8702ad59aab1af7e23038fbffd5bd34902f1f7c 9 --- 10 11 Index: antlr/runtime/Java/src/main/java/org/antlr/runtime/debug/DebugTreeAdaptor.java 12 =================================================================== 13 --- antlr.orig/runtime/Java/src/main/java/org/antlr/runtime/debug/DebugTreeAdaptor.java 14 +++ antlr/runtime/Java/src/main/java/org/antlr/runtime/debug/DebugTreeAdaptor.java 15 @@ -227,7 +227,7 @@ public class DebugTreeAdaptor implements 16 17 @Override 18 public Object deleteChild(Object t, int i) { 19 - return deleteChild(t, i); 20 + return adaptor.deleteChild(t, i); 21 } 22 23 @Override 24 25