classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] Re: PR java/14070: gij and -jar argument should set the man


From: Tom Tromey
Subject: [cp-patches] Re: PR java/14070: gij and -jar argument should set the manifest Class-path recursively
Date: 02 Nov 2004 14:07:09 -0700
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>>>>> "Andrew" == Andrew Haley <address@hidden> writes:

Andrew> OK, this is the new, improved, low-fat version of the patch.
Andrew> urls was a Vector, and I've changed it to a LinkedHashSet.  When we
Andrew> add a URL, we first check that we haven't added it already, and this
Andrew> prevents the loader from looping.

I don't think this satisfies all the constraints we need to satisfy.

I'm pretty sure there is code out there that assumes that
URLClassLoader.getURLs() will return the exact URLs given to
URLClassLoader, in the exact order.  I think this patch changes this.


The other question I have is about ordering.  Suppose you create a
URLClassLoader with a.jar and b.jar.  Suppose a.jar has a
Class-Path entry pointing to a2.jar.  And finally suppose you are
looking for a resource named R which appears in both a2.jar and b.jar.
Which is found?

I'm sure this case sounds dumb, but I'm picturing the hours of
debugging that will happen when we run into it in the field... better
to be compatible up front.

Tom




reply via email to

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