From b69fa52dce34b8400f06843fc311dbb86fd25730 Mon Sep 17 00:00:00 2001 From: Olivier Jolly Date: Sun, 5 Mar 2006 17:20:51 +0000 Subject: 2006-03-05 Olivier Jolly Fixes PR 22813 * java/net/URLClassLoader.java (FileURLLoader.getResource): Allows directories as valid resources. --- java/net/URLClassLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java') diff --git a/java/net/URLClassLoader.java b/java/net/URLClassLoader.java index 9e489db53..ffa73dda6 100644 --- a/java/net/URLClassLoader.java +++ b/java/net/URLClassLoader.java @@ -539,7 +539,7 @@ public class URLClassLoader extends SecureClassLoader try { File file = new File(dir, name).getCanonicalFile(); - if (file.exists() && !file.isDirectory()) + if (file.exists()) return new FileResource(this, file); } catch (IOException e) -- cgit v1.2.1