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

Ivan Gerasimov ivan.gerasimov at oracle.com
Fri Dec 13 20:07:54 UTC 2019


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 

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