bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/22813] Classloaders should return valid URLs from getReso


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22813] Classloaders should return valid URLs from getResource for directories
Date: 16 Oct 2005 01:27:19 -0000

To be consistent with Sun JDK 1.4.2, the standard classloaders (e.g.
java.net.URLClassLoader and the system classloader) should return a valid URL
for directories, as well as files, from calls to getResource(). IBM's icu4j
project assumes this behaviour.

Attached is a patch to a relevant Mauve test case, which I have already to
submitted to the Mauve project.


------- Comment #1 from from-classpath at savannah dot gnu dot org  2005-03-02 
17:21 -------
The URLClassLoader should now exhibit this behaviour. file: URLs representing
directories return a list of the names of files in the directory, in the
platform encoding, separated by the platform line separator. The Content-Length
of the response is the number of bytes in this response, rather than the "size"
of the directory.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22813





reply via email to

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