From 26b7058186c514825d7ba765e1278a812a1e71b4 Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Tue, 21 Nov 2017 17:52:51 +0100 Subject: [PATCH] Issue #1981 --- .../org/eclipse/jetty/util/resource/URLResource.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/URLResource.java b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/URLResource.java index 2349747065c..c4c04ba3a94 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/URLResource.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/URLResource.java @@ -171,15 +171,6 @@ public class URLResource extends Resource public File getFile() throws IOException { - // Try the permission hack - if (checkConnection()) - { - Permission perm = _connection.getPermission(); - if (perm instanceof java.io.FilePermission) - return new File(perm.getName()); - } - - // Don't know the file return null; }