jdk/src/java.base/windows/classes/sun/nio/fs/WindowsPath.java
changeset 28847 5667388e3a79
parent 28244 1b52033818b1
child 37355 5ab49ea6e03a
--- a/jdk/src/java.base/windows/classes/sun/nio/fs/WindowsPath.java	Fri Feb 06 09:57:28 2015 +0100
+++ b/jdk/src/java.base/windows/classes/sun/nio/fs/WindowsPath.java	Fri Feb 06 08:05:44 2015 -0800
@@ -391,6 +391,10 @@
         if (!this.root.equalsIgnoreCase(other.root))
             throw new IllegalArgumentException("'other' has different root");
 
+        // this path is the empty path
+        if (this.isEmpty())
+            return other;
+
         int bn = this.getNameCount();
         int cn = other.getNameCount();