8187883: NewClassDefEnclosing.java fails on windows

Fixing whitespace normalization.

Reviewed-by: mcimadamore
This commit is contained in:
Jan Lahoda 2017-09-25 13:03:11 +02:00
parent bde617da88
commit 4335a9a642

View File

@ -68,8 +68,8 @@ public class NewClassDefEnclosing {
JCTree.JCVariableDecl var =
(JCTree.JCVariableDecl) ((ClassTree) cut.getTypeDecls().get(0)).getMembers().get(1);
expected = expected.replaceAll("[ \n]+", " ");
String actual = var.toString().replaceAll("[ \n]+", " ");
expected = expected.replaceAll("\\s+", " ");
String actual = var.toString().replaceAll("\\s+", " ");
if (!expected.equals(actual)) {
System.err.println("Expected: " + expected);