8187883: NewClassDefEnclosing.java fails on windows
authorjlahoda
Mon, 25 Sep 2017 13:03:11 +0200
changeset 47257 0d0ba0cde4e9
parent 47256 7c2d1e90a9e4
child 47258 4bfce39946ba
8187883: NewClassDefEnclosing.java fails on windows Summary: Fixing whitespace normalization. Reviewed-by: mcimadamore
test/langtools/tools/javac/tree/NewClassDefEnclosing.java
--- 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);