changeset 3628:e15a551a81b5

8164837: fix jdeprscan TestLoad and TestScan failures on Windows Reviewed-by: darcy
author smarks
date Mon, 29 Aug 2016 13:44:43 -0700
parents f08683786207
children 047d4d42b466
files src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/Main.java test/ProblemList.txt
diffstat 2 files changed, 1 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.jdeps/share/classes/com/sun/tools/jdeprscan/Main.java	Mon Aug 29 20:55:24 2016 +0200
+++ b/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/test/ProblemList.txt	Mon Aug 29 20:55:24 2016 +0200
+++ b/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