URLClassLoader fix for getCanonicalFileURL fix
Mark Wielaard
mark@klomp.org
Sun Dec 22 13:15:00 GMT 2002
Hi,
The last change to URLClassLoader which introduced the
getCanonicalFileURL() method contained a subtle bug. It works OK for
file URLs that point to real files, but not always for directories.
Since we later use this URL to construct a relative URL for a found
resource we must make sure that the file part ends with a separator if
it points to a directory.
2002-12-21 Mark Wielaard <mark@klomp.org>
* java/net/URLClassLoader.java (getCanonicalFileURL): Make sure that
if the original file part of the URL ended with a separator that the
canonical version also ends with a separator.
Mauve now contains tests for this case which pass with this patch.
It also makes Eclipse run much better.
OK for branch and mainline?
Cheers,
Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: URLClassLoader.patch
Type: text/x-patch
Size: 1343 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20021222/0d4886f7/attachment.bin>
More information about the Java-patches
mailing list