8164837: fix jdeprscan TestLoad and TestScan failures on Windows
authorsmarks
Mon, 29 Aug 2016 13:44:43 -0700
changeset 40761 e56fe259825c
parent 40608 a71210c0d980
child 40762 f8883aa0053c
8164837: fix jdeprscan TestLoad and TestScan failures on Windows Reviewed-by: darcy
langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/Main.java
langtools/test/ProblemList.txt
--- a/langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/Main.java	Wed Jul 05 22:08:56 2017 +0200
+++ b/langtools/src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/Main.java	Mon Aug 29 13:44:43 2016 -0700
@@ -181,7 +181,7 @@
                      .filter(name -> !name.endsWith("package-info.class"))
                      .filter(name -> !name.endsWith("module-info.class"))
                      .map(s -> s.replaceAll("\\.class$", ""))
-                     .map(s -> s.replace('/', '.'))
+                     .map(s -> s.replace(File.separatorChar, '.'))
                      .collect(toList()));
     }
 
--- a/langtools/test/ProblemList.txt	Wed Jul 05 22:08:56 2017 +0200
+++ b/langtools/test/ProblemList.txt	Mon Aug 29 13:44:43 2016 -0700
@@ -77,10 +77,3 @@
 ###########################################################################
 #
 # jdeps 
-
-###########################################################################
-#
-# jdeprscan
-
-tools/jdeprscan/tests/jdk/jdeprscan/TestLoad.java                               8164837    windows-all    probably line breaks or encoding
-tools/jdeprscan/tests/jdk/jdeprscan/TestScan.java                               8164837    windows-all    probably line breaks or encoding