8187883: NewClassDefEnclosing.java fails on windows
Summary: Fixing whitespace normalization.
Reviewed-by: mcimadamore
--- a/test/langtools/tools/javac/tree/NewClassDefEnclosing.java Mon Sep 25 11:32:13 2017 +0100
+++ b/test/langtools/tools/javac/tree/NewClassDefEnclosing.java Mon Sep 25 13:03:11 2017 +0200
@@ -68,8 +68,8 @@
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);