From b58066451e08b540d03d43498a293706142085d8 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Fri, 5 Apr 2013 09:58:05 +1100 Subject: [PATCH] 404958 Fixed Resource.newSystemResource striped / handling --- .../main/java/org/eclipse/jetty/util/resource/Resource.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java index 688d4a530a5..5f9e5c53885 100644 --- a/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java +++ b/jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java @@ -217,8 +217,7 @@ public abstract class Resource implements ResourceFactory { URL url=null; // Try to format as a URL? - ClassLoader - loader=Thread.currentThread().getContextClassLoader(); + ClassLoader loader=Thread.currentThread().getContextClassLoader(); if (loader!=null) { try @@ -250,7 +249,7 @@ public abstract class Resource implements ResourceFactory { url=ClassLoader.getSystemResource(resource); if (url==null && resource.startsWith("/")) - url=loader.getResource(resource.substring(1)); + url=ClassLoader.getSystemResource(resource.substring(1)); } if (url==null)