This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: RFC: Merge java.net.URL
- From: Andrew Haley <aph at redhat dot com>
- To: Gary Benson <gbenson at redhat dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: Tue, 9 Jan 2007 13:57:03 +0000
- Subject: Re: RFC: Merge java.net.URL
- References: <20070109130446.GD24745@redhat.com>
Gary Benson writes:
>
> I'm planning on removing GCJ'S customized java.net.URL after the
> branch gets merged (with something like the attached patch) but
> there's one bit I want to check. GCJ's URL.getURLStreamHandler()
> has special cases for "file://" and "core://" URLs with this note:
>
> This is an interesting case. It's tempting to think that we
> could call Class.forName ("gnu.java.net.protocol.file.Handler")
> to get the appropriate class. Unfortunately, if we do that
> the program will never terminate, because getURLStreamHandler
> is eventually called by Class.forName.
The handler for "core" has nothing to do with that note; it's a
separate case.
> The special cases are six years old, and GCJ seems to run fine
> without them, passing make check, etc, but I wanted to see if
> anyone knows of special weird cases in which this could break.
Well, are you suggesting we remove the "core" protocaol altogether?
Andrew.