changeset 2610:9e29021d0d13

8056252: Incremental build fails on Windows Summary: Changed from '/' to File.separatorChar Reviewed-by: jfranck
author alundblad
date Fri, 29 Aug 2014 14:58:35 +0200
parents 9e6adccdd77f
children 9da59b2ab73d
files src/jdk.compiler/share/classes/com/sun/tools/sjavac/Source.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/sjavac/Source.java	Fri Aug 29 00:42:42 2014 -0700
+++ b/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")) {