Community
Participate
Working Groups
Szymon P. in Bug 340834, comment 1 said: "I have compared the execution of the test on Win7 and on Linux and it turned out that the test fails on Win7 because java.io.File#getCanonicalPath() does not resolve symbolic links on Win7. See http://download.oracle.com/javase/6/docs/api/java/io/File.html#getCanonicalPath(). This is why UnifiedTree#isRecursiveLink() keeps returning "false" on Win7 while at the same time on Linux it returns "true" (the loop is correctly discovered)." Szymon P., could you check what the Java plan is to support Win7 symlink correctly?
(In reply to Szymon Brandys from comment #0) > Szymon P., could you check what the Java plan is to support Win7 symlink > correctly? Java supports symbolic links resolution on Windows 7 since Java 7 by introducing new API to handle following or not symbolic links. See for example the implementation of org.eclipse.core.internal.filesystem.java7.DosHandler and the way it uses the LinkOption.NOFOLLOW_LINKS option.
Java 7 Files#toRealPath() might work resolving the issue. http://docs.oracle.com/javase/8/docs/api/java/nio/file/Path.html#toRealPath-java.nio.file.LinkOption...-
New Gerrit change created: https://git.eclipse.org/r/54365
Gerrit change https://git.eclipse.org/r/54365 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.resources.git/commit/?id=ae67854e69a5ccdc12ea04f5244513ef47dcbb0e
.