bug-classpath
[Top][All Lists]
Advanced

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

[Bug classpath/25141] New: java.net.URL(URL context, String spec) const


From: berrange at redhat dot com
Subject: [Bug classpath/25141] New: java.net.URL(URL context, String spec) constructor does not pass-through java.net.URLStreamHandler impl from context
Date: 28 Nov 2005 17:39:41 -0000

If one creates a base URL with a custom java.net.URLStreamHandler, eg

  URL base = new URL("acme",
                     "www.redhat.com",
                     80,
                     "/docs/",
                     new ACMEHandler());

And, then create a second URL, using this original as the base context:

  URL other = new URL(base, "manuals/enterprise/");

Then, the java.net.URL impl in ClassPath will throw

  java.net.MalformedURLException: Protocol handler not found: acme

In the Sun / IBM  JVMs, however, the 'ACMEHandler' object from the 'base' URL
will be passed through to the 'other' URL object, and no exception is thrown.


-- 
           Summary: java.net.URL(URL context, String spec) constructor does
                    not pass-through java.net.URLStreamHandler impl from
                    context
           Product: classpath
           Version: 0.19
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: classpath
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: berrange at redhat dot com


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





reply via email to

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