From: Robin Rosenberg Date: Sun, 9 Mar 2014 11:09:19 +0000 (+0100) Subject: Catch UnsupportedOperationException for older Windowses X-Git-Tag: v3.4.0.201405051725-m7~55 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F91%2F23091%2F1;p=jgit.git Catch UnsupportedOperationException for older Windowses Bug: 429947 Change-Id: I78d38b345726f62841db34f7091812a91bf21b4b --- 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 4a9d5f0bb7..071186725c 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)