8056252: Incremental build fails on Windows
authoralundblad
Fri, 29 Aug 2014 14:58:35 +0200
changeset 26275 d2ca1fed21a9
parent 26274 02a5b23ee21c
child 26276 0dca2378aa34
8056252: Incremental build fails on Windows Summary: Changed from '/' to File.separatorChar Reviewed-by: jfranck
langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/Source.java
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/Source.java	Fri Aug 29 00:42:42 2014 -0700
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/Source.java	Fri Aug 29 14:58:35 2014 +0200
@@ -313,7 +313,7 @@
             int sp = fn.lastIndexOf(File.separatorChar);
             String pkg = "";
             if (sp != -1) {
-                pkg = fn.substring(0,sp).replace('/','.');
+                pkg = fn.substring(0,sp).replace(File.separatorChar,'.');
             }
             // Is this a module-info.java file?
             if (fn.endsWith("module-info.java")) {