classpath-patches
[Top][All Lists]
Advanced

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

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


From: Tom Tromey
Subject: Re: [cp-patches] Fix for VMClassLoader.getResource()
Date: 17 Mar 2005 12:00:14 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Archie" == Archie Cobbs <address@hidden> writes:

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.


One other thing to put in this class is support for
java.endorsed.dirs.

Tom




reply via email to

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