diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | java/net/URLClassLoader.java | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2006-03-05 Olivier Jolly <olivier.jolly@pcedev.com> + + Fixes PR 22813 + * java/net/URLClassLoader.java (FileURLLoader.getResource): + Allows directories as valid resources. + 2006-03-04 Mark Wielaard <mark@klomp.org> * configure.ac (VERSION): Set to 0.90-pre. 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) |