This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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]

RFC: Merge java.net.URL


Hi all,

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 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.

Cheers,
Gary

Attachment: merge-url.patch
Description: Text document


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