diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/FileResource.java b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/FileResource.java index b0cd0844afa..f7f9021a2db 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/FileResource.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/FileResource.java @@ -111,16 +111,7 @@ public class FileResource extends Resource _uri=normalizeURI(_file,uri); if (!_uri.equals(_file.toURI()) && !_uri.toString().equals(_file.toURI().toString())) - { - try - { - _alias=_file.toURI().toURL(); - } - catch (MalformedURLException e) - { - throw new IllegalArgumentException(e); - } - } + _alias=_file.toURI(); else _alias=checkAlias(_file); }