summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorNicolas Geoffray <nicolas.geoffray@menlina.com>2005-10-21 10:25:14 +0000
committerNicolas Geoffray <nicolas.geoffray@menlina.com>2005-10-21 10:25:14 +0000
commitbcb190db6da213629a7e7fe4acfef1aec8b99996 (patch)
tree5cba1fba11c7827827c3ac1dd91b7ef2d7306e78 /vm
parent3ee9cee7b1f514ad2de10fff726a6f4b7f68af23 (diff)
downloadclasspath-bcb190db6da213629a7e7fe4acfef1aec8b99996.tar.gz
2005-10-21 Nicolas Geoffray <nicolas.geoffray@menlina.com>
* vm/reference/java/lang/VMClassLoader.java (getRessources): In case the property java.boot.class.path contains directories, tests if the ressource exists before adding it to the vector result.
Diffstat (limited to 'vm')
-rw-r--r--vm/reference/java/lang/VMClassLoader.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/vm/reference/java/lang/VMClassLoader.java b/vm/reference/java/lang/VMClassLoader.java
index 4fe124036..b8475f10a 100644
--- a/vm/reference/java/lang/VMClassLoader.java
+++ b/vm/reference/java/lang/VMClassLoader.java
@@ -139,8 +139,9 @@ final class VMClassLoader
{
try
{
- v.add(new URL("file://"
- + new File(file, name).getAbsolutePath()));
+ File f = new File(file, name);
+ if (!f.exists()) continue;
+ v.add(new URL("file://" + f.getAbsolutePath()));
}
catch (MalformedURLException e)
{