Hi Ivan, Did you mean to change from System.err to System.out?
I might have fixed the overloading by giving one of the overloaded methods a better name. How about private static void printIndented(String s, int depth) On Fri, Dec 13, 2019 at 12:11 PM Ivan Gerasimov <[email protected]> wrote: > Hello! > > The java.util.regex package contains a debugging utility PrintPattern > which is used to display the internal representation structure of a > compiled regex pattern. > > When it prints a node that is linked to another node that has already > been printed, it is supposed to print a link, but fails. > > The error is due to ambigous overloading of print() method. > > Would you please help review a trivial fix? > > No regression test because the utility is not something officially > supported. > > BUGURL: https://bugs.openjdk.java.net/browse/JDK-8235930 > WEBREV: http://cr.openjdk.java.net/~igerasim/8235930/00/webrev/ > > -- > With kind regards, > Ivan Gerasimov > >
