RFR 8235930 : java.util.regex.PrintPattern does not print a link to the next node

Martin Buchholz martinrb at google.com
Sat Dec 14 14:58:02 UTC 2019

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 <ivan.gerasimov at oracle.com>

> 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

More information about the core-libs-dev mailing list