This is the mail archive of the mauve-patches@sources.redhat.com mailing list for the Mauve project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

java.net.URLClassLoader - new test for getResource loading directories


Hi list,

Please apply the attached patch which adds checking that getResource()
works on directories as well as regular files. As a consequence, the first test
in getResource.java is wrong, because it says that getResource(".") should
fail, but . is a directory, so it should work. So I corrected that also.

This is to be consistent with sun JDK 1.4.2, and to try and get IBM ICU4j
(which expects this behaviour) working on a free runtime.

Also, where/how would I add a similar test for the system class loader?
-- 
Robin

P.S. Pedantically, to avoid delegation to the system class loader messing
up the test, this test should be run in a chroot, to ensure that no
accidentally-same-named directories exist ;-)

Attachment: mauve.patch
Description: Text document

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]