classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cp-patches] RFC: VMClassLoader : hashmap for jars from property jav


From: David Lichteblau
Subject: Re: [cp-patches] RFC: VMClassLoader : hashmap for jars from property java.boot.class.path
Date: Thu, 6 Oct 2005 16:48:16 +0200
User-agent: Mutt/1.5.8i

Hi,

Quoting Nicolas Geoffray (address@hidden):
[...]
> 2005-10-06  Nicolas Geoffray  <address@hidden>
> 
>       * vm/reference/java/lang/VMClassLoader.java
>        (getResources): uses a new static field HashMap to
>        store opened zip files from property java.boot.class.path.

your patch contains a bugfix that you did not mention but that would be
nice to see applied (independently of other changes): Without the
f.exists() check the reference implementation does not work properly.

(Presumably all VM authors know this already and override it.)

> --- classpath-0.18/vm/reference/java/lang/VMClassLoader.java  2005-10-06 
> 10:26:34.000000000 +0200
> +++ classpath-0.18-jnjvm/vm/reference/java/lang/VMClassLoader.java    
> 2005-10-06 14:47:02.000000000 +0200
> @@ -139,8 +142,9 @@
>         {
>           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()));


d.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]