8056252: Incremental build fails on Windows

Changed from '/' to File.separatorChar

Reviewed-by: jfranck
This commit is contained in:
Andreas Lundblad 2014-08-29 14:58:35 +02:00
parent f4dc4013f0
commit baa94f7823

View File

@ -313,7 +313,7 @@ public class Source implements Comparable<Source> {
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")) {