diff options
author | Nicolas Geoffray <nicolas.geoffray@menlina.com> | 2005-10-21 10:25:14 +0000 |
---|---|---|
committer | Nicolas Geoffray <nicolas.geoffray@menlina.com> | 2005-10-21 10:25:14 +0000 |
commit | bcb190db6da213629a7e7fe4acfef1aec8b99996 (patch) | |
tree | 5cba1fba11c7827827c3ac1dd91b7ef2d7306e78 /vm | |
parent | 3ee9cee7b1f514ad2de10fff726a6f4b7f68af23 (diff) | |
download | classpath-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.java | 5 |
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) { |