[Top][All Lists]

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

Re: [cp-patches] Fix for VMClassLoader.getResource()

From: Archie Cobbs
Subject: Re: [cp-patches] Fix for VMClassLoader.getResource()
Date: Thu, 17 Mar 2005 13:17:12 -0600
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041129

Tom Tromey wrote:
Archie> VMClassLoader.getResource() does not handle ZIP files on the
Archie> boot loader class path. The attached patch fixes this.

I've been working in this area recently for libgcj.

What I ended up doing is creating a helper subclass of URLClassLoader
that has some additional methods (to wrap findClass() and the like --
an in particular to avoid delegation).  Then I made VMClassLoader use
this.  This has the nice quality that it can handle any kind of URL
without duplicating any of the code in URLClassLoader.

We could bless this as an official approach and put it in the
Classpath reference implementation.

That sounds like a decent approach. Do you plan to commit that soon?
If not I can commit my patch as an interim solution.


Archie Cobbs      *        CTO, Awarix        *

reply via email to

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