6759775: RegularFileObject.inferBinaryName gives bad result on empty path
Reviewed-by: mcimadamore
--- a/langtools/src/share/classes/com/sun/tools/javac/file/RegularFileObject.java Wed Oct 15 13:20:03 2008 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/file/RegularFileObject.java Thu Oct 16 07:30:13 2008 -0700
@@ -89,6 +89,8 @@
for (File dir: path) {
//System.err.println("dir: " + dir);
String dPath = dir.getPath();
+ if (dPath.length() == 0)
+ dPath = System.getProperty("user.dir");
if (!dPath.endsWith(File.separator))
dPath += File.separator;
if (fPath.regionMatches(true, 0, dPath, 0, dPath.length())