From ba30be6408e6203f7a3d76c06b73ad5ac1739475 Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Tue, 19 Jul 2011 16:16:41 -0500 Subject: [PATCH] [Bug 349005] add javadoc detailing the convenience hack of removing leading /'s --- .../java/org/eclipse/jetty/webapp/WebAppClassLoader.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppClassLoader.java b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppClassLoader.java index 6ef8a9ddd76..6680de1ba99 100644 --- a/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppClassLoader.java +++ b/jetty-webapp/src/main/java/org/eclipse/jetty/webapp/WebAppClassLoader.java @@ -316,6 +316,13 @@ public class WebAppClassLoader extends URLClassLoader } /* ------------------------------------------------------------ */ + /** + * Get a resource from the classloader + * + * NOTE: this method provides a convenience of hacking off a leading / + * should one be present. This is non-standard and it is recommended + * to not rely on this behavior + */ public URL getResource(String name) { URL url= null;