Community
Participate
Working Groups
This may be related to bug #429947 - FS_Win32_Java7#detectSymlinkSupport should catch UnsupportedOperationException We have the following exception filed to NetBeans IDE: java.lang.UnsupportedOperationException: Symbolic links not supported on this operating system at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(WindowsFileSystemProvider.java:529) at java.nio.file.Files.createSymbolicLink(Files.java:1043) at org.eclipse.jgit.util.FileUtil.createSymLink(FileUtil.java:96) at org.eclipse.jgit.util.FS_Win32_Java7Cygwin.createSymLink(FS_Win32_Java7Cygwin.java:128) at org.eclipse.jgit.internal.storage.file.FileRepository.create(FileRepository.java:309) at org.eclipse.jgit.lib.Repository.create(Repository.java:169) Can FS_Win32_Java7Cygwin.createSymLink catch UnsupportedOperationException and throw IOException instead (Files.createSymbolicLink may throw an UOE according to the javadoc)? Or possibly Repository.create could catch the exception besides already caught IOException for the createSymLink call?
Just for the record, our reporter uses Windows XP, so i expect this does not happen in Cygwin on Windows Vista+. https://netbeans.org/bugzilla/show_bug.cgi?id=252168