Patch: URLClassLoader change

Mark Wielaard mark@klomp.org
Tue Dec 10 12:07:00 GMT 2002


Hi,

On Tue, 2002-12-10 at 00:53, Tom Tromey wrote:
> The JDK uses absolute (actually canonical -- I tested) paths in its
> CodeSource objects.  I think this makes sense; this is what the
> appended implements.

Thanks for doing the research. It certainly makes sense to do this.

>   It is kind of ugly since baseURL can't be final
> any more.

But here you can do the 'use a static method in the super() call' trick.
(Insert rant about the stupid rule that the first statement of a
constructor must be a this() or super() call but that to be useful you
are still allowed to change the arguments, etc...)
I attached a slightly rewritten patch.
(Note that it compiles, but that is all testing that I done).

Thanks for cleaning up that last formatting issues in the file.

Cheers,

Mark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: URLClassLoader.patch
Type: text/x-patch
Size: 3894 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20021210/441f092c/attachment.bin>


More information about the Java-patches mailing list