This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: URLClassLoader change
On Sun, 2002-12-29 at 14:05, Mark Wielaard wrote:
> And we agreed that taking all canonicalization out of URLClassLoader was
> the best approach. (He also found the noCert bug). So I propose the
> following patch (which supersedes my earlier one):
I haven't tried this patch yet... but will it solve the following
problem?
Given...
public class BadURL
{
public static void main (String args[])
{
System.out.println (ClassLoader.getSystemResource ("BadURL.java"));
}
And, given that my current directory is "/home/green"...
With gcj 3.2, this program prints:
file:./BadURL.java
Which is OK I guess. With the 3.3, I get:
file:/home/BadURL.java
Which is definitely bad. It looks like "green" is being stripped out in
URLStreamHandler.parseURL.
I'll see if your patch makes a difference.
AG