diff options
Diffstat (limited to 'testing')
-rw-r--r-- | testing/src/test/java/org/aspectj/testing/util/FileUtil.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/src/test/java/org/aspectj/testing/util/FileUtil.java b/testing/src/test/java/org/aspectj/testing/util/FileUtil.java index 03b29a85a..103eba59b 100644 --- a/testing/src/test/java/org/aspectj/testing/util/FileUtil.java +++ b/testing/src/test/java/org/aspectj/testing/util/FileUtil.java @@ -477,7 +477,7 @@ public class FileUtil { throws IOException { String path = in.getCanonicalPath(); String parentPath = parent.getCanonicalPath(); - if (!path.startsWith(parentPath)) { + if (!in.getCanonicalFile().toPath().startsWith(parentPath)) { throw new Error("not parent: " + parentPath + " of " + path); } else { path = path.substring(1+parentPath.length()); |