From 7e258e6468a2bbb357bfb06d4e844cf694325b10 Mon Sep 17 00:00:00 2001 From: Robin Rosenberg Date: Sun, 9 Mar 2014 12:09:19 +0100 Subject: [PATCH] Catch UnsupportedOperationException for older Windowses Bug: 429947 Change-Id: I78d38b345726f62841db34f7091812a91bf21b4b --- .../src/org/eclipse/jgit/util/FS_Win32_Java7.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jgit.java7/src/org/eclipse/jgit/util/FS_Win32_Java7.java b/org.eclipse.jgit.java7/src/org/eclipse/jgit/util/FS_Win32_Java7.java index 4a9d5f0bb..071186725 100644 --- a/org.eclipse.jgit.java7/src/org/eclipse/jgit/util/FS_Win32_Java7.java +++ b/org.eclipse.jgit.java7/src/org/eclipse/jgit/util/FS_Win32_Java7.java @@ -80,7 +80,7 @@ public class FS_Win32_Java7 extends FS_Win32 { FileUtil.createSymLink(linkName, tempFile.getPath()); supportSymlinks = Boolean.TRUE; linkName.delete(); - } catch (IOException e) { + } catch (IOException | UnsupportedOperationException e) { supportSymlinks = Boolean.FALSE; } finally { if (tempFile != null)